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

AudioStreamMP3: Use a LocalVector to store data #97026

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

DeeJayLSP
Copy link
Contributor

LocalVector has less overhead than Vector, and I don't think CoW is needed here.

Considering both setting and getting the data make a copy in some way, and conversion between Vector and LocalVector always makes copies, I believe this doesn't create a problem.

@DeeJayLSP DeeJayLSP requested a review from a team as a code owner September 14, 2024 23:55
@AThousandShips AThousandShips added this to the 4.x milestone Sep 15, 2024
@adamscott adamscott modified the milestones: 4.x, 4.4 Sep 17, 2024
@akien-mga akien-mga merged commit 26dde5c into godotengine:master Sep 17, 2024
20 checks passed
@DeeJayLSP DeeJayLSP deleted the mp3-local branch September 17, 2024 19:08
@akien-mga
Copy link
Member

Thanks!

Tekisasu-JohnK added a commit to TekisasuEngine/tekisasu that referenced this pull request Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants