Skip to content

feat: introduce problem.add_all to add many vars#101

Merged
lovasoa merged 3 commits intomainfrom
bulk-add
Jun 22, 2025
Merged

feat: introduce problem.add_all to add many vars#101
lovasoa merged 3 commits intomainfrom
bulk-add

Conversation

@KnorpelSenf
Copy link
Copy Markdown
Contributor

Adds a new method add_all to add many variables at once. This is not just more convenient, it also requires fewer allocations as the underlying vector is resized only once.

Switches the add_vector implementation to the new add_all method in order to let it benefit from the improved memory allocation strategy.

@KnorpelSenf KnorpelSenf requested a review from lovasoa June 22, 2025 06:52
@lovasoa lovasoa merged commit 08e0898 into main Jun 22, 2025
12 checks passed
@lovasoa
Copy link
Copy Markdown
Collaborator

lovasoa commented Jun 22, 2025

Thanks. Great contribution

@KnorpelSenf KnorpelSenf deleted the bulk-add branch June 23, 2025 14:08
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