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)