html2docx icon indicating copy to clipboard operation
html2docx copied to clipboard

Poor Performance for Large Tables

Open dashingdove opened this issue 2 years ago • 1 comments

When inserting large tables, the following code performs terribly:

image

This actually seems to be the fault of the docx package, as the cell function is not very efficient. I have raised this issue over there too. However, if you instead call Table._cells once before the loop and then refer to that array inside the loop, then it improves the performance drastically.

dashingdove avatar May 05 '23 05:05 dashingdove

Fix: #58

dashingdove avatar May 05 '23 05:05 dashingdove