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: optimize bytecode cache load speed and fix http cache #552

Merged
merged 7 commits into from Mar 20, 2024

Conversation

andycall
Copy link
Member

@andycall andycall commented Jan 29, 2024

  1. The HTTP cache relies on the contextId to function. However, this PR introduced a bug that make the entire HTTP cache mode ineffective.

  2. According to profile data, we found that the getCrc32(bytes.toList()) takes lots of time with unexpected and can be optimized with getCrc32(bytes) instead.

    image
  3. TheCookieJar.setCookieString also take lots of times unexpected and can be optimized by making the file write async.
    image

@TomesVWhite TomesVWhite self-requested a review February 20, 2024 12:17
@andycall andycall force-pushed the feat/optimize_js_cache_load branch from a335261 to 8d8d0da Compare March 8, 2024 07:22
@andycall andycall force-pushed the feat/optimize_js_cache_load branch from 23becb9 to bf3fc86 Compare March 11, 2024 05:36
@andycall andycall merged commit 6a0bef8 into main Mar 20, 2024
30 checks passed
@andycall andycall deleted the feat/optimize_js_cache_load branch March 20, 2024 15:54
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.

None yet

3 participants