Docx to html performance regression between 19.1 and 19.2

We are using Aspose.Words for .NET to convert docx files to html. This process got considerably slower between 19.1 and 19.2 (19.3 is affected as well).

Timings (in ms) of Document.Save for a small docx file:
##################
asponse 19.1
to stream: 1968,7883
to file: 223,8359
to stream: 287,8258
to file: 151,3666
to stream: 292,4273
#################
asponse 19.3
to stream: 6476,3743
to file: 437,8619
to stream: 4841,2048
to file: 359,2784
to stream: 4863,94
#################

Conversion time increases by a factor of 2 for “to file” and by a factor of 17 for “to stream” .

Find attached a Visual Studio 2017 solution that shows this problem.
Steps to reproduce:

  • build attached solution in release mode
  • execute binary with “dotnet PerfomanceIssueWhenSavingHtml.dll” and check output
  • change version of aspose nuget package
  • rebuild
  • execute binary with “dotnet PerfomanceIssueWhenSavingHtml.dll” and check output

PerfomanceIssueWhenSavingHtml.zip (107.4 KB)

@IBP,

We have logged your problem in our issue tracking system. Your ticket number is WORDSNET-18379. We will further look into the details of this problem and will keep you updated on the status of the linked issue.

The issues you have found earlier (filed as WORDSNET-18379) have been fixed in this Aspose.Words for .NET 19.7 update and this Aspose.Words for Java 19.7 update.