Skip to content

Comments

AE-1820: Enable Shared Strings Table on .xlsx inventory writer to save memory#350

Merged
karsten-klein merged 1 commit intomasterfrom
AE-1820-reduce-xlsx-file-size
Feb 19, 2026
Merged

AE-1820: Enable Shared Strings Table on .xlsx inventory writer to save memory#350
karsten-klein merged 1 commit intomasterfrom
AE-1820-reduce-xlsx-file-size

Conversation

@YanWittmann
Copy link
Contributor

@YanWittmann YanWittmann commented Feb 12, 2026

This PR saves memory when writing .xlsx inventory files by enabling the Shared String Table feature on the apache POI worksheet that is being written.

// before
final SXSSFWorkbook workbook = new SXSSFWorkbook();
// last parameter is useSharedStringsTable
final SXSSFWorkbook workbook = new SXSSFWorkbook(null, 100, true, true);

As the string table only supports XSSFRichTextString, I had to switch to that one (does not support the currently used HSSFRichTextString).

After vs. Before:

image

@YanWittmann
Copy link
Contributor Author

This change will only impact the XLSX format, not XLS, as the table is not available for XLS.

@karsten-klein karsten-klein merged commit 5636aec into master Feb 19, 2026
7 checks passed
@karsten-klein karsten-klein deleted the AE-1820-reduce-xlsx-file-size branch February 19, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants