Skip to content

Comments

Fix the inconsistent behavior between Spine vector's setSize and std::vector's resize, which causes the Spine vector to allocate additional space upfront.#2830

Merged
badlogic merged 1 commit intoEsotericSoftware:4.2from
bofeng-song:4.2
May 5, 2025
Merged

Conversation

@bofeng-song
Copy link
Contributor

企业微信截图_17458243154941

As shown in the screenshot, when the vector is empty, the first call to resize results in capacity and size being equal, meaning no additional capacity is allocated.

…:vector's resize, which causes the Spine vector to allocate additional space upfront.
@badlogic
Copy link
Collaborator

badlogic commented May 5, 2025

That's a great idea. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants