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

flat_array_map appears to be too slow when querying #87

Open
tzaeschke opened this issue Sep 12, 2022 · 2 comments
Open

flat_array_map appears to be too slow when querying #87

tzaeschke opened this issue Sep 12, 2022 · 2 comments
Assignees

Comments

@tzaeschke
Copy link
Owner

tzaeschke commented Sep 12, 2022

See #39. the flat_array_map appears to be too slow when querying compared to sparse_map. Confirm and fix.

@tzaeschke
Copy link
Owner Author

This may be related to TZCNT/CTZ not being compiled to a CPU instruction, see #103.

@tzaeschke
Copy link
Owner Author

-> Probably not CTZ, but somehow lower_bound seems quite expensive, even when done with TZCNT which should be just one cycle with -mbmi2.
is it maybe the waste of memory (due to allocating 2^k entries for usually to entries)? Or the non-linear access(?)?

@tzaeschke tzaeschke self-assigned this Dec 20, 2022
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

No branches or pull requests

1 participant