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

Don't use weak refs #647

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Don't use weak refs #647

wants to merge 1 commit into from

Conversation

b-studios
Copy link
Collaborator

@b-studios b-studios commented Oct 19, 2024

Running the benchmark permute 10 crashes nodejs.

In this PR, I investigate not using weak references to see how this affects performance.

Here are preliminary results:

image

Those benchmarks that heavily use references, like permute, seem to benefit from not using weak refs.

With this change, permute 10 still crashes, but doesn't mention weak references anymore. It looks like we just run out of memory.

Please bare in mind that not using weak refs might lead to holding too long onto a references that could have been freed before.

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