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

fix: use hash of in-memory bytes only for code cache #23966

Merged
merged 7 commits into from
May 24, 2024

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented May 23, 2024

Did benchmarking on this and it's slightly faster (couple ms) or equal to in performance as main.

Closes #23904

) -> Option<Vec<u8>> {
self.get_sync(specifier, code_cache_type, source_hash)
}

fn set_sync(
&self,
specifier: &str,
specifier: ModuleSpecifier,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deno_core was changed for this to be owned because it already had an owned value it no longer needed and this may allow us in the future to send this to another thread and skip a clone.

@dsherret dsherret marked this pull request as ready for review May 24, 2024 00:40
@dsherret dsherret requested a review from igorzi May 24, 2024 00:46
Copy link
Contributor

@igorzi igorzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret merged commit b21004b into denoland:main May 24, 2024
17 of 20 checks passed
@dsherret dsherret deleted the source_hash_only_code_cache branch May 24, 2024 14:16
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.

V8 code cache: node_modules cache doesn't work on Lambda
2 participants