]> source.dussan.org Git - poi.git/commit
Optimize generating numbers for bullets in Word
authorDominik Stadler <centic@apache.org>
Mon, 15 Jul 2024 05:41:14 +0000 (05:41 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 15 Jul 2024 05:41:14 +0000 (05:41 +0000)
commit719e7154a19c00e1c2464e5f93a1567d8ca5ed72
tree7770905ba7f96075670ac8f354bfe11b671584fa
parenta9717512382201ee290a4d1e52c6f195db16e8ab
Optimize generating numbers for bullets in Word

Using char[] instead of String improves performance of this
operation considerably, especially in JDK 11+ where StringBuilder
was switched to work on bytes instead of chars.

This is likely only relevant for very large documents, it was visible
in a synthetic test-file from fuzzing.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919239 13f79535-47bb-0310-9956-ffa450edef68
poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/NumberFormatter.java