Hello, Good news ... after applying the attached patch to trunk and doing yet another performance experiment using the previously posted workload these are the results:
BEFORE (trunk)
Mean Variance
15.125 5.514
15.440 3.474
15.258 9.736
15.621 23.869
15.449 4.817
15.500 2.662
15.221 8.431
15.319 3.419
15.142 1.626
15.457 3.972
AFTER (trunk + patch)
Mean Variance
14.404 5.928
14.487 16.781
14.132 1.618
14.314 3.174
14.663 7.522
14.542 15.086
14.283 6.924
14.399 2.064
14.205 1.609
14.471 2.761
The mean values look surprisingly much better than in the office. I'm
running here Snow Leopard with JVM 1.6.0_19.
Is iText with the patch better than before?
The paired observation of the means are:
{(15.125, 14.404),
(15.440, 14.487),
(15.258, 14.132),
(15.621, 14.314),
(15.449, 14.663),
(15.500, 14.542),
(15.221, 14.283),
(15.319, 14.399),
(15.142, 14.205),
(15.457, 14.471)}
The performance differences constitute a sample of 10 observations:
{0.721, 0.953, 1.126, 1.307, 0.786, 0.958, 0.938, 0.92, 0.937, 0.986}
For this sample:
Sample mean = 0.9632
Sample variance = 0.02651
Sample standard Deviation = 0.16282
Confidence interval for the mean = 0.9632 +/- t*sqrt(0.02651/10) = 0.9632
+/- t*0.0514
The 0.95 quantile of a t-variate with df=N-1=10-1=9 is 1.833113
=> 95% confidence interval = 0.9632 +/- 1.833113*0.0514 =
[0.9632-0.09422,0.9632+0.09422] = [0.86898,1.05742]
Since the confidence interval does NOT include zero we can conclude that the
performance improvement is significative (patch is better than no patch) and
will be approximately of (0.9632/15.3532)*100% = 6.2%
I also ran the workload connected to the profiler and the number of
StringBuffer instances decreased to 846'988
The Letter PDF looks good i.e. the patch didn't seem to break anything but
you will have to run the unit tests on it.
Best regards,
Giovanni
PS: There are still some StringBuffer around to fix ...
PRTokeniser.patch
Description: Binary data
------------------------------------------------------------------------------
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
