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

Free Support Forum - aspose.com

Performance with Aspose.Slides 14.4 and above

Hi,


We are seeing huge performance degradation with the new Aspose.Slides for Java.

Here’s the code in which we are seeing the degradation:-

Presentation pptPresentation = new Presentation(srcFilename);
ISlideCollection slides = pptPresentation.getSlides();
int slideCount = pptPresentation.getSlides().size();

The degradation is around 100%.
Is there any workaround?

Thanks,
Nitesh

Hi Nitesh,

Thanks for inquiring Aspose.Slides.

I have observed the requirement shared by you and request you to please share the complete details about the issue. Please share the sample presentation, Operating system details, statistics achieved and details about the performance issue. I will investigate the issue further on my end to help you out.

Many Thanks,

Hi Mudassir,


I am using a Windows 7 64-bit system with 16 GB RAM with 2.4 GHz i7 processor.
I have timed 2 different codes. One creates a PDF from the PPT and another just extracts slides and iterates over each one. I have also attached the sample.

Here’s the timing with the code:-

Aspose.slides 8.4.0:-
Total time is 759
long startTime = System.currentTimeMillis();
Presentation presentation = new Presentation(inputFile);
Slides slides = presentation.getSlides();
int slideCount = slides.getCount();
Point point = new Point(presentation.getSlideSize().width, presentation.getSlideSize().height) ;
for(int i=0 ; i<slideCount-1; i++)
{
Slide slide = slides.get_Item(i);
}
long endtime = System.currentTimeMillis();
System.out.println("Total time is "+ (endtime - startTime));
Total time is 6431
long startTime = System.currentTimeMillis();
Presentation presentation = new Presentation(inputFile);
presentation.save(outputFile, SaveFormat.Pdf);
long endtime = System.currentTimeMillis();
System.out.println("Total time is "+ (endtime - startTime));
Aspose.slides 14.6:-
Total time is 1718
long startTime = System.currentTimeMillis();
Presentation pptPresentation = new Presentation(inputFile);
ISlideCollection slideCollection = pptPresentation.getSlides();
int slideCount = slideCollection.size();
Point point = new Point(Math.abs((int)pptPresentation.getSlideSize().getSize().getWidth()), Math.abs((int)pptPresentation.getSlideSize().getSize().getHeight())) ;
for(int i=0; i<slideCount-1; i++)
{
Slide slide = (Slide)slideCollection.get_Item(i);
}
long endtime = System.currentTimeMillis();
System.out.println("Total time is "+ (endtime - startTime));
Total time is 8389
long startTime = System.currentTimeMillis();
Presentation presentation = new Presentation(inputFile);
presentation.save(outputFile, SaveFormat.Pdf);
long endtime = System.currentTimeMillis();
System.out.println("Total time is "+ (endtime - startTime));

Thanks,
Nitesh

Hi Nitesh,


Please accept my apologies for the delayed response.

I have observed the statistics shared by you where you have made comparison between Aspose.Slides for Java 8.4.0 and Aspose.Slides for Java 14.6.0. I like to share that internally these two APIs are based on entirely different models. In Aspose.Slides for Java 8.x.x sereis we have separate classes and namespace for dealing with PPT presentations. However, in Aspose.Slides for Java 14.x.x series we have unified classes and namespaces for dealing with both PPT and PPTX presentation formats. Also, the new API is more rich in terms of features support as well. We are also working over improving the performance of new unified as well on our end and it is a continual process that will take some time.

I have added a performance related issue with ID SLIDESJAVA-34530 in our issue tracking system to further investigate and resolve the issue on our end. We will share the feedback with you in this regard as soon as it will be shared by our development team.

We are sorry for your inconvenience,
Hi Mudassir,
Our performance reports indicate that thumbnai extraction has also regressed. Please find the details below:

Code:
BufferedImage image=aSlide.getThumbnail(new Dimension(800, 800));

Aspose 7.5.1
=========
Time to extract 5 slides for a PPT presentation:
RUN 1: 3.216
RUN 2: 3.091


Aspose 14.6
=========
Time to extract 5 slides for a PPT presentation:
RUN 1: 4.616
RUN 2: 5.125

The presentation is attached. Kindly include this scenario in the performance issue raised.

Thanks & Regards,
Vimal


Hi Vimal,

Thanks for sharing your feedback. I have created a separate issue with ID SLIDESJAVA-34535 in our issue tracking system to further investigate the performance related issue with thumbnail rendering. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-34535;SLIDESJAVA-34530) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.