We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Java vs NET Performance

I have noticed that opening an existing presentation with the


Presentation pres = new Presentation(“test.pptx”);

call takes very long in Java, but does not in .NET

With a 44-Slide PPTX file this took about 45 seconds in Java 1.8.0_66 and 12 seconds in Mono 4.0.3.20 (on an Ubuntu 14.04 machine).

Also java needs more than 1GB of memory to perform this action.
I was using Aspose.Slides 15.10.0 for both tests.

For my project, I would like to use Java, so is there any way, I can speed this up? Why is there such a big difference between the two platforms.

Hi Leon,


Thank you for considering Aspose.Slides.

I have observed your comments and like to share with you that it is a well known issue and in most cases it refers to Java restrictions. I request you to please share with us the presentation which you are using for testing, along with the code snippet which you are using to check the presentation loading time. Please also share with us the results when,
a) code compilled without debug info
b) target platform is Oracle JDK 1.7 on Windows (same machine for .Net test)
c) JVM running with next keys:
-XX:CompileThreshold=1 -XX:+UseParallelGC -XX:+UseConcMarkSweepGC -XX:+AggressiveOpts
d) -Xmx options allocates enough memory
e) execution time calculated after jvm warm-up and GC.Collect

We expect better results after jvm warm-up for this case.

Please share requested data and information with us so that we may proceed further to help you out.

Best Regards,