Slide_as_html speed java 8 vs java 11 (1982)

Hello,

I’m using Aspose.Slides 17.10 for Java and I am facing a difference in speed of saving one slide as HTML between java 8 and java 11. Please find attached xlsx file with results, presentation file and check this.

Thanks, Zeljko

@Test
public void testAspose() {
	String path = "HtmlTest_VA.pptx"; //$NON-NLS-1$
	Presentation presentation = null;

	String saveFilePath = System.getProperty("java.io.tmpdir") + "/createHtmlOfEachSlide"; //$NON-NLS-1$

	try {
		presentation = new Presentation(path);

		ISlideCollection slides = presentation.getSlides();
		for (int i = 1; i < slides.size() + 1; i++) {
			boolean slide = slides.get_Item(i - 1).getHidden();
			if (!slide) {
				try (OutputStream outputStream = new FileOutputStream(
						saveFilePath.concat(String.valueOf(i)))) {

					long start = System.nanoTime();
					presentation.save(outputStream, new int[] { i }, SaveFormat.Html);
					System.out.println("slide " + i + ":" + (System.nanoTime() - start) / 1000000);
				} catch (Exception e) {
					
				}
			}
		}
	} finally {
		presentation.dispose();
	}
}

results.xlsx.zip (5.7 KB)
HtmlTest_VA.pptx.zip (181.6 KB)

@Zeljko,

I have observed that you are using a fairly old version of product and suggest you to please try using latest Aspose.Slides for Java 19.1 in your environment first. If there is still performance related comparison observed on your end, please share that with us and we will investigate that further on our end.

Yes, I tried with 19.1 version and there is an actual improvement in performances.

Best, Zeljko

@Zeljko,

Thank you for sharing the updates. Should we consider this issue closed now.