Skip to content

Optimize iodata by avoiding empty separators in DeepText and FlatText#682

Merged
philss merged 1 commit into
philss:mainfrom
preciz:optimize-iodata-empty-separator
Apr 15, 2026
Merged

Optimize iodata by avoiding empty separators in DeepText and FlatText#682
philss merged 1 commit into
philss:mainfrom
preciz:optimize-iodata-empty-separator

Conversation

@preciz
Copy link
Copy Markdown
Contributor

@preciz preciz commented Apr 15, 2026

This change avoids the inclusion of empty strings in iodata.
This results in a consistent 12-16% speedup and a ~23% reduction in memory usage.

This change avoids the inclusion of empty strings in iodata when the
default empty separator is used. This results in a consistent 12-16%
speedup and a ~23% reduction in memory usage during text extraction
across various tree sizes.
@philss philss merged commit 418250a into philss:main Apr 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants