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

feat: Caching and other efficiency improvements for mcap polyfill #4708

Merged
merged 9 commits into from Nov 18, 2022

Conversation

dave-nicholas
Copy link
Contributor

This PR caches the result of requestMediaKeySystemAccess saving time on subsequent calls.
It also makes the calls to decodingInfo synchronous. The reason for this, is the result of testing on multiple devices that the behaviour of requestMediaKeySystemAccess appears to be synchronous, making this synchronous can save over a second on older TVs.

The issue is currently assigned to my colleague Hugo Lima.
Closes #4574

@dave-nicholas dave-nicholas changed the title Caching and other efficiency improvements for mcap polyfill feat: Caching and other efficiency improvements for mcap polyfill Nov 14, 2022
@github-actions
Copy link
Contributor

Incremental code coverage: 100.00%

@avelad avelad added type: enhancement New feature or request priority: P2 Smaller impact or easy workaround labels Nov 14, 2022
@avelad avelad added this to the v4.4 milestone Nov 14, 2022
lib/util/stream_utils.js Show resolved Hide resolved
lib/polyfill/media_capabilities.js Outdated Show resolved Hide resolved
lib/polyfill/media_capabilities.js Outdated Show resolved Hide resolved
test/polyfill/media_capabilities_unit.js Outdated Show resolved Hide resolved
test/polyfill/media_capabilities_unit.js Outdated Show resolved Hide resolved
lib/polyfill/media_capabilities.js Outdated Show resolved Hide resolved
@avelad
Copy link
Collaborator

avelad commented Nov 16, 2022

@dave-nicholas there are errors in the tests

@dave-nicholas
Copy link
Contributor Author

@dave-nicholas there are errors in the tests

Fixed 👍

test/polyfill/media_capabilities_unit.js Outdated Show resolved Hide resolved
lib/polyfill/media_capabilities.js Outdated Show resolved Hide resolved
lib/util/stream_utils.js Show resolved Hide resolved
lib/polyfill/media_capabilities.js Outdated Show resolved Hide resolved
lib/polyfill/media_capabilities.js Outdated Show resolved Hide resolved
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Caching and other efficiency improvements for mcap polyfill
4 participants