This project has moved and is read-only. For the latest updates, please go here.

DocX is slow | way to improve the performance

Jun 19, 2014 at 2:48 PM

I am trying to read a docx file which contain around 5000 (5K) pages and the DocX library is taking too much time (more than 5 minutes) to load the document while the XML method is way too faster (it only takes around 10 seconds). I will the way that DocX uses to organize the docx file that is why I am seeking some help here to improve the performance.

What are the areas that I can look into to improve the performance?

Jun 19, 2014 at 3:31 PM
Well, you have to figure it out yourself. Install some sort of performance helper tool (like RedGate ANTS Performance Profiler, ANTS Memory Profiler or similar) and load your 5000 pages documents and see what takes most of it's time. Then try to optimize the procedures that take most of the time. DocX will be happy if you can improve some portions of the code and share it with others :-)