Skip to content

Performance improvements - #90

Merged
jcmosc merged 8 commits into
mainfrom
performance-improvements
Dec 3, 2026
Merged

jcmosc merged 8 commits into
mainfrom
performance-improvements

Conversation

@jcmosc

@jcmosc jcmosc commented Dec 3, 2026

Copy link
Copy Markdown
Owner

No description provided.

Move-assign the elements after the erased ones down and destroy the
leftover elements at the end, rather than destroying the erased elements
and swapping live elements with them, which was also invalid for
elements that aren't trivially copyable.
Take const_iterators and return the iterator following the erased elements,
rather than the new end(). The unique_ptr specialization shares the same
implementation as the other vectors.
TreeDataElement::nodes() is sorted by tree element, so encoding or describing
a tree no longer scans every node for each tree element.
@jcmosc
jcmosc merged commit 1b769f0 into main Dec 3, 2026
3 of 4 checks passed
@jcmosc
jcmosc deleted the performance-improvements branch December 3, 2026 16:31
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