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

perf(transmuxer): various performance improvements #6003

Merged

Conversation

vanyaxk
Copy link
Contributor

@vanyaxk vanyaxk commented Dec 7, 2023

This change improves loop performance - creating new arrays is not performant in large loops, and a traditional for loop is more performant than for .. of for large concatenations

lib/transmuxer/h264.js Outdated Show resolved Hide resolved
@avelad avelad added type: performance A performance issue priority: P1 Big impact or workaround impractical; resolve before feature release labels Dec 7, 2023
@avelad avelad requested a review from theodab December 7, 2023 17:49
@avelad avelad added this to the v5.0 milestone Dec 7, 2023
@vanyaxk vanyaxk force-pushed the perf/improve-performance-transmuxer branch from 6dfebf3 to 8bedbb9 Compare December 8, 2023 08:56
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 81.25%

@vanyaxk vanyaxk force-pushed the perf/improve-performance-transmuxer branch from 8bedbb9 to a3b90a0 Compare January 7, 2024 17:06
@avelad avelad merged commit cd326e2 into shaka-project:main Jan 8, 2024
11 of 15 checks passed
avelad added a commit that referenced this pull request Jan 8, 2024
This change improves loop performance - creating new arrays is not
performant in large loops, and a traditional for loop is more performant
than for .. of for large concatenations

---------

Co-authored-by: Ivan Kohut <ivan.kohut@lamin.ar>
Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
avelad added a commit that referenced this pull request Jan 8, 2024
This change improves loop performance - creating new arrays is not
performant in large loops, and a traditional for loop is more performant
than for .. of for large concatenations

---------

Co-authored-by: Ivan Kohut <ivan.kohut@lamin.ar>
Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Mar 8, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Mar 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: performance A performance issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants