Aspose.Slides/Net6.Crossplatform Latest Versions Are Slower During PPTX-to-HTML5 Conversions

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!

@IBurzoEvoRWS

Could you please specify the exact performance metrics you observed when comparing the different versions of Aspose.Slides? Additionally, any specific details about the environment setup would be helpful.

The metrics have been strictly time related, i.e: stopwatch Start before the presentation, and Stop after the save, and console logging the resulted time.

In short:
Aspose.Slides is around 4-8x times slower in 25.5.0 than 24.9.0, Comparing 6 second execution time with 26 seconds, 2 seconds versus 16 on second run, etc.

Aspose.Slides.Crossplatform is around 2 times slower in 25.5.0 (and 24.12.0) than 24.9.0 and 24.11.0,
when comparing 45-50 second average with 90-100 second average.
The attached pics contain this info

@IBurzoEvoRWS,
Thank you for describing the issue. We are sorry that you encountered this problem. I have reproduced the issue of increased execution time for PPTX-to-HTML5 conversion after updating Aspose.Slides from version 24.9 to 25.5.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44997

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like