we have a document 717 bookmarks and we want to remove the bookmarks at the end of a process.
We recognized that there is a huge difference between the performance Aspose.Words.Bookmark.Remove had in the version 17.1 and it has in the new version 18.6
In Version 17.1 it took about 5 seconds to remove 717 bookmarks.
In Version 18.6 it takes about 60 seconds to remove 717 bookmars.
In Version 17.1 it removes about 140 bookmarks in a second.
In Version 18.6 it removes just about 5 bookmarks in a second at the beginning and it gets better as the number of the remaining bookmarks becomes smaller (up to 55 bookmarks). There is a correlation between the number of bookmaks in the document and the removing speed of Aspose.Word.Bookmark.Remove (see the attached picture)
Diagram.png (29.1 KB)
Why is it like this? How can this problem be solved? It is very critical and would prevent us using the new version.