Hello. Our company uses the following libraries:
Aspose.Slides.Net6 for apps targetting net47
Aspose.Slides.Net6.Crossplatform for our application running under net8, Linux containers.
The current versions we run are 24.9.0 for both, and they are working fine.
We have decided to across the board update to latest (25.5.0) for both, and noticed significant slower processing time when converting pptx files to HTML.
I have run a few tests using the same Pptx as attached here:
asd1.7z (1.6 MB)
The code i ran is the following:
using (Presentation presentation = new Presentation(pptFilePath))
{
Compress.RemoveUnusedMasterSlides(presentation);
Compress.RemoveUnusedLayoutSlides(presentation);
Compress.CompressEmbeddedFonts(presentation);
foreach (ISlide slide in presentation.Slides)
{
var shapesToRemove = new List<IVideoFrame>();
foreach (IShape shape in slide.Shapes)
{
if (shape is IVideoFrame videoFrame)
shapesToRemove.Add(videoFrame);
}
foreach (var videoFrame in shapesToRemove)
{
slide.Shapes.Remove(videoFrame);
}
}
presentation.Save(pptSavePath, SaveFormat.Html5, new Html5Options
{
AnimateShapes = false,
AnimateTransitions = false
});
}
In short, we remove unused master and layout slides, we remove video frames, compress embedded fonts, and then we save with Html5 options.
When running different versions of Aspose.Slides, these are the results (i added stopwatch before and after the method i posted above)
image.jpg (136.8 KB)
When running different versions of Aspose.Slides.Net6.Crossplatform in Docker Linux using Amazon Linux 2 base image, these are the results:
image.jpg (170.5 KB)
It is very clear to me that starting with 25.1.0 for Aspose.Slides and with 24.12.0 with Aspose.Slides.Crossplatform the processing time is significantly slower, to the point where we cannot update due to losing so much time.
I would like to know if these issues are known and worked on, and should we expect some speeding up in the future?
Thank you!