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

Make small literal maps cheaper #317

Open
cgrand opened this issue Aug 8, 2024 · 0 comments
Open

Make small literal maps cheaper #317

cgrand opened this issue Aug 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cgrand
Copy link
Contributor

cgrand commented Aug 8, 2024

ClojureDart doesn't have ArrayMaps. Allocating small maps is thus more expensive than with array maps.
This could be optimized in many cases by detecting literal maps whose keys don't conflicts on the lowest 5 bits and emitting special code to allocate straight from the array + precomputed bitmaps.
This can be done in macro land the only little blocker is to make cljd-hash accessible to the macro.

@cgrand cgrand added the enhancement New feature or request label Aug 8, 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
Projects
None yet
Development

No branches or pull requests

1 participant