UNSOLVED

nishiichinoe

updated

15 years ago

0

2101

September 13th, 2011 06:00

Performance FPClip.write() ?

I recognized, that writing the clipID takes the most time. Have a look at this code:

(1) FPFileInputStream inputStream = new FPFileInputStream(oFile);               

(2) newTag.BlobWrite(inputStream, FPLibraryConstants.FP_OPTION_CLIENT_CALCID);

(3) inputStream.close();

(4) String clipID = theClip.Write();

The last line (4) takes the most time. I expected that BlobWrite() (2) would take the most time.

Here are the times of storing an 11 kb document:

(1) 0.000 seconds

(2) 0.032 seconds

(3) 0.000 seconds

(4) 2.405 seconds

How can I optimize that?