Skip to content

avoid inserting tokens at the beginning of the flattened tokens vector#748

Merged
froydnj merged 1 commit intotrunkfrom
froydnj-into-tokens-reserve
Jan 1, 2026
Merged

avoid inserting tokens at the beginning of the flattened tokens vector#748
froydnj merged 1 commit intotrunkfrom
froydnj-into-tokens-reserve

Conversation

@froydnj
Copy link
Collaborator

@froydnj froydnj commented Jan 1, 2026

insert'ing into vectors is generally bad; we can avoid calling insert here with a slightly more verbose way of constructing the vector. This way appears to be slightly faster on the benchmark suite.

@froydnj froydnj merged commit 10e179c into trunk Jan 1, 2026
8 checks passed
@froydnj froydnj deleted the froydnj-into-tokens-reserve branch January 1, 2026 20:58
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