3x Increase in the Runtime after Updating Aspose.Slides for .NET from 23.8 to 23.9

There’s a 3x increase in the runtime when I updated the library from Aspose 23.8 to 23.9 (and no other changes in the code).

@gssnhimabindu,
Thank you for contacting support.

Could you please share more details to reproduce the issue on our end?

@andrey.potapov

I have compared the performance using several PPTs, and could see a sharp difference when the PPTs have equations. The performance has been affected since this Containerize.IdentityServer - Single sign-on to access all applications and services of Aspose Pty Ltd. fix. We are using simple APIs of Slides.NET such as getthumbnail of shapes/slides, getparagraphs, getshapes in slide etc.

@gssnhimabindu,
To investigate the case on our end, please share the following files and information:

  • examples of presentation files
  • code examples
  • your performance metrics
  • OS version on which the code was executed
  • .NET platform in your app

Hi,
Kindly use the presentation from this link Containerize.IdentityServer - Single sign-on to access all applications and services of Aspose Pty Ltd., you can copy the slides 10 times within same PPT to see a noticeable difference.

OS version: windows 10
.NET framework 4

Code example:

public void AsposeRuntimeCheck(Presentation Ppt)
{

    var timer = new Stopwatch();
    timer.Start();
    var slides = Ppt.Slides;
    var slideNum = 0;
    var shapeNum = 0;
    foreach (var slide in slides)
    {
        var shapes = slide.Shapes;

        foreach (var shape in shapes)
        {
            try
            {
                Bitmap ImageData = shape.ToBitmap();
                ImageData.Dispose();
                Console.WriteLine("Aspose runtime check in slide: " + slideNum + "," + "shape: " + shapeNum);
            }
            catch (Exception exp)
            {
                Console.WriteLine("Exception in aspose runtime check- " + exp.Message);
            }
            shapeNum++;
        }
        slideNum++;
    }
    timer.Stop();
    TimeSpan timeTaken = timer.Elapsed;
    string foo = "Time taken: " + timeTaken.ToString();

    Console.WriteLine("runtime " + foo);
    return;
}

Here we have highlighted only one API to show the performance difference. 23.9, 23.10 have taken at least 10x time more than 23.8.

@gssnhimabindu,

When I clicked on your pasted link, I could not access to paid support ticket. We appreciate if you could zip and attach the source PowerPoint presentation, so we could evaluate your issue precisely on our end.

By the way, we have now released Aspose.Slides for .NET from v23.10. so you may also try it if it makes any difference.

Hi amajad,

This link in the above text points to paid ticket reagarding

could you use the ppt from the same, we dont have access to it. we have noticed performance drop in cases that are capture in above mentioned ticket.

Regards,
Raman

@gssnhimabindu,

We downloaded the Presentation file from other thread. We need to evaluate the performance deterioration in newer versions. 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-44313

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.

Amjad,

We got to know that issue is also being picked up as SLIDESNET-44312. Aspose team has confirmed they are able to reproduce this issue.

Regards,
Raman

@sraman.
Thank you for the information. We have taken this into account.

We are pleased to inform you that the issue (logged as “SLIDESNET-44313”) has been resolved. Hopefully, the fix will be included in the next release (Aspose.Slides v23.12) which is scheduled in the next month. You will be notified when the supported version is published.

The issues you found earlier (filed as SLIDESNET-44313) have been fixed in Aspose.Slides for .NET 23.12 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.