Any one use ofxGifEncoder??

it save gif image using,but when the image size big(eg,960*960),this line code will so slowly!!!
quantizedBmp = FreeImage_ColorQuantizeEx(bmp, FIQ_NNQUANT, nColors);

can any one help to optimize it?