mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
The current implementation calls updateHeaders() very often causing cloning a sheet to take very long with high CPU. We can optimize a number of things here: * Use getTableColumnArray() as the List-based methods have very costly implementations of hasNext()/next() * Avoid some duplicated calls to updateHeaders() There are likely more aggressive optimizations like only calling updateHeaders() once after cloning, but this would require more invasive changes in this rarely used code-area.