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

Optimize mapping over primitive values, by assigning a stable wrapper object to each of them #10

Open
fabiospampinato opened this issue Apr 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@fabiospampinato
Copy link
Member

Currently $.for has some performance issues when handling primitives, especially if they could be found in the array multiple times. That should probably be addressed by adding a normalization step that maps primitives to wrapper objects, to get a non-primitive reference for caching purposes.

@fabiospampinato fabiospampinato added the enhancement New feature or request label Apr 3, 2024
@fabiospampinato fabiospampinato changed the title Optimize mapping over primitive values, but assigning a stable wrapper object to each of them Optimize mapping over primitive values, by assigning a stable wrapper object to each of them Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant