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

fast map #1823

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

fast map #1823

wants to merge 10 commits into from

Conversation

abuts
Copy link
Member

@abuts abuts commented Feb 5, 2025

According to Re #1825 implemented fast map to use to access indices.

Adds class providing fast map functionality to the code to use in maping between pixels and IX_experiments.

fast_map_vs_map_performacne routine shows, that the class, if oprimized, works 100 times faster than standard MATLAB containers.Map. If not optimized, is still 5 times faster for search and 11 times faster for search and insertion.

Find & Add keys to UINT        map   takes 324.988sec
Find & Add keys FAST MAP       map   takes 27.3212sec
Find       keys in UINT        map   takes 89.579sec
Find    keys in FAST MAP       map   takes 19.6152sec
Find all keys in FAST MAP      map   takes 18.6721sec
Find keys in FAST MAP Opt      map   takes 0.803015sec
Find all keys in FAST MAP opt  map   takes 0.304346sec

@abuts abuts requested a review from cmarooney-stfc February 5, 2025 14:49
@abuts
Copy link
Member Author

abuts commented Feb 6, 2025

Solves #1825

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