Skip to content

Ogg: Use LocalVector and do memory optimizations #107846

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DeeJayLSP
Copy link
Contributor

@DeeJayLSP DeeJayLSP commented Jun 22, 2025

Somewhat the Ogg Vorbis version of #96017 and #97026.

Modifies a few Vectors in OggPacketSequence and AudioStreamOggVorbis to use LocalVectors instead.

I also did a few memory optimizations by adding reserve() calls or using resize + assign.

The innermost type in page_data remains a regular Vector as it needs to be compatible with Variant. Shouldn't be a problem as only one write operation is done on it.

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.

2 participants