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

Introducing late Uint8Array initialization #275

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

Conversation

SergeyRusskih
Copy link

@SergeyRusskih SergeyRusskih commented Mar 31, 2023

This is the fix for the latency issue when the initialization code is executed once it is loaded into runtime and causes an increase in parsing & execution time regardless of its usage. In particular, Uint8Array buffer initialization either triggers GC sweep or blocks a network thread in older browsers (ArrayBuffers used to be allocated from the network heap).

See: #274

This is the fix for the latency issue when the initialization code is executed once it is loaded into runtime and causes an increase in parsing & execution time regardless of its usage. In particular, Uint8Array buffer initialization either triggers GC sweep or blocks a network thread in older browsers (ArrayBuffers used to be allocated from the network heap).
Adding missing if statement to initialize Uint8Array only once
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.

1 participant