Skip to content

Conversation

acutmore
Copy link
Collaborator

In fbdd122 the sorting during construction was removed, but the equality function assumes the string keys are sorted, so the equality was not always correct.

This PR re-introduces sorting, but just for the string keys so symbols are still supported.

This PR adds some performance improvements by using #private fields instead of WeakMap and also using a custom prototype for the internal helpers to be able to use Map and Set directly, instead of using apply to invoke their methods.

@acutmore acutmore merged commit 1c8c3f2 into main Sep 14, 2025
2 checks passed
@acutmore acutmore deleted the perf-improvments branch September 14, 2025 17:27
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