Taking Too Long to Clone Few Slides and It Is Not Consistent for the Same Slide

I am using Aspose.Slide library in my application where I am cloning PPT slides from one to another PPT. When cloning some of the slides taking more than 130 seconds to clone and it is not consistent for the same slide when ran multiple times for the same PPT.

@hegogineni

It sounds like you’re experiencing performance issues when cloning slides using the Aspose.Slides library. Here are a few suggestions that might help you troubleshoot and improve the cloning speed:

  1. Single-threaded Operations: Ensure that you are not using a single instance of the Presentation class across multiple threads. The library is not designed for concurrent operations on the same instance, which can lead to unpredictable behavior and performance issues. Instead, consider using separate instances for each operation.

  2. Optimize Slide Content: If the slides you are cloning contain complex elements (like high-resolution images, embedded objects, or extensive animations), this can significantly slow down the cloning process. Try simplifying the content of the slides if possible.

  3. Batch Cloning: If you are cloning multiple slides, consider implementing a batch process where you clone several slides at once rather than one at a time. This can sometimes improve performance.

  4. Resource Management: After cloning, make sure to properly dispose of any resources used by the Presentation instances. This can help prevent memory leaks and improve overall performance.

  5. Profile Your Code: Use profiling tools to identify bottlenecks in your code. This can help you understand which specific operations are taking the most time and allow you to optimize them.

If the issue persists, you might want to check the Aspose community forums for similar experiences or post your specific scenario for further assistance.

For more detailed guidance on cloning slides, you can refer to the official documentation on cloning slides in Aspose.Slides here and the multithreading considerations here.

Sources:
[1]: Clone Slide at End of Another Presentation | Aspose.Slides Java …
[2]: Multithreading in Aspose.Slides - Aspose Documentation

@hegogineni,
If the issue persists, please share the following files and information:

  • sample presentation file
  • code example to reproduce the issue
  • OS version on which the code was executed
  • Aspose.Slides version you used