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

perf: Make JS callbacks lock-free #446

Merged
merged 1 commit into from
Dec 22, 2024
Merged

perf: Make JS callbacks lock-free #446

merged 1 commit into from
Dec 22, 2024

Conversation

mrousavy
Copy link
Owner

No reason for a lock here since the assumption is that we are already on the JS Thread (otherwise calling it wouldn't be safe anyways), and we have OwningReference - so a strong one.

It can never be deleted here by the GC, so no reason to hold an OwningLock.

Copy link

vercel bot commented Dec 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
nitro-docs ⬜️ Skipped (Inspect) Dec 22, 2024 0:53am

@mrousavy mrousavy merged commit f21c79a into main Dec 22, 2024
12 checks passed
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