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

High number of memory allocations when running JS #1036

Open
FireMasterK opened this issue Mar 5, 2023 · 0 comments
Open

High number of memory allocations when running JS #1036

FireMasterK opened this issue Mar 5, 2023 · 0 comments
Labels
enhancement New feature or request youtube service, https://www.youtube.com/

Comments

@FireMasterK
Copy link
Member

When trying to decrypt the n parameter, we have to execute some JavaScript.

To do this currently, we create a new Rhino context each time, compile the function, and then run it while disabling optimizations.

What I think we should do is:

  • Store the context and function
  • Enable optimizations
  • Maybe make the entire thing generic? So any JS interpreter could be used.

ScreenShot from a profiler
image

@FireMasterK FireMasterK added the youtube service, https://www.youtube.com/ label Mar 5, 2023
@AudricV AudricV added the enhancement New feature or request label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request youtube service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests

2 participants