Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve: Optimize state allocation #479

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

sevenc-nanashi
Copy link

@sevenc-nanashi sevenc-nanashi commented Dec 8, 2024

This PR adds some optimization to VST3's setState.
This brings massive improvement:

The X axis represents a size of source, and Y axis represents how many bytes are copied by re-allocation (realloc copies buffer right?).

image

https://docs.google.com/spreadsheets/d/1ELkIF4Xp4o7W6gX1-xuYVYrT0fbgW-AWOC8Z73WU-no/edit?usp=sharing

Closes #478 .

P.S.: The best way is to add entire buffer size as a header, but I didn't so that the effect will be smaller.

@sevenc-nanashi
Copy link
Author

Any chance of getting this pr merged?

@falkTX
Copy link
Contributor

falkTX commented Feb 4, 2025

yes, but I would take a different approach. it is good to have your PR as a base to build on though.

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