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

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Don't use weak refs #647

merged 1 commit into from
Nov 12, 2024

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.

@b-studios b-studios marked this pull request as ready for review November 7, 2024 15:47
@b-studios b-studios merged commit d6b3482 into master Nov 12, 2024
2 checks passed
@b-studios b-studios deleted the refactor/no-weak-refs branch November 12, 2024 16:40
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