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

Write performance optimisation #33

Closed
wants to merge 2 commits into from
Closed

Conversation

richiejp
Copy link
Contributor

@richiejp richiejp commented Apr 9, 2019

Optimising the backrefs membership operation resulted in a 11x speedup in benchmarks, but that seems irrelevant as it was an O(n^(n - 1)) operation (IIRC, I am too lazy to figure this out again), but is now O(1) where 'n' is the number of immutable objects.

Richard Palethorpe added 2 commits April 9, 2019 16:52
Was 11x speedup in benchmarks, but that seems irrelevant as it was an O(n!)
operation (unless I am mistaken), but is now O(1) where 'n' is the number of
immutable objects.
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