Skip to content

Avoid O(n^2) work on gzipped liberty data#488

Open
calewis wants to merge 1 commit intoberkeley-abc:masterfrom
calewis:grow_faster
Open

Avoid O(n^2) work on gzipped liberty data#488
calewis wants to merge 1 commit intoberkeley-abc:masterfrom
calewis:grow_faster

Conversation

@calewis
Copy link
Contributor

@calewis calewis commented Mar 2, 2026

Measured this function as a bottleneck for small modules with big gzipped liberty files. Bottleneck goes away when growing the buffer by a factor of 2 on resize. Similar to libstdc++'s vector or rust's Vec growth.

…ng big files.

Signed-off-by: Drew Lewis <cannada@google.com>
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.

1 participant