Skip to content

Add inplace vector support - #733

Merged
liuzicheng1987 merged 1 commit into
getml:mainfrom
cacharle:add-inplace-vector
Oct 9, 2026
Merged

liuzicheng1987 merged 1 commit into
getml:mainfrom
cacharle:add-inplace-vector

Conversation

@cacharle

@cacharle cacharle commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Fix #724

I reused the existing VectorReader so the changes are quite small.

Would be a bit nicer to check size vs capacity before iterating on each elements to only do the size check once instead of doing it on every element but I'm guessing the performance improvement would be only tiny so I used try_emplace_back instead.

@liuzicheng1987

Copy link
Copy Markdown
Collaborator

@cacharle thanks for the contribution! I am merging.

@liuzicheng1987
liuzicheng1987 merged commit c5a53b6 into getml:main Oct 9, 2026
176 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.

Add support for std::inplace_vector

2 participants