Skip to content

Comments

Cherry-pick "Reduce allocations by reusing the String that holds the cell value"#7

Merged
MonterraByte merged 2 commits intov0.1from
cherrypick-reuse-string
Mar 13, 2025
Merged

Cherry-pick "Reduce allocations by reusing the String that holds the cell value"#7
MonterraByte merged 2 commits intov0.1from
cherrypick-reuse-string

Conversation

@MonterraByte
Copy link
Owner

No description provided.

Currently, the code allocates twice for every cell of the table.
This commit changes it to allocate only once for the whole table
(barring any reallocations necessary to grow the String), significantly
reducing allocations (the only other place in the code that allocates
is the BufWriter).

(cherry picked from commit 2257c7d)
@MonterraByte MonterraByte merged commit 95bc0d7 into v0.1 Mar 13, 2025
8 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.

1 participant