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

feat!: DashMap based catalog #1585

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

CommanderStorm
Copy link
Collaborator

@CommanderStorm CommanderStorm commented Nov 16, 2024

This PR changes the internal datastructure to be Dashmap<..> as suggested in #1179 (review)
I thought that the data/configuration/.. split might be more managble in terms of reviwing and shipping this.

Sadly two changes did cascade a bit:

  • &dyn Source -> Box<dyn Source>
  • DashMap does not guarantee sorting of keys => I need to manually do so

I had some free time and this seemed like a nice issue to progress on, I hope you (@sharkAndshark) don't mind me stealing this part ^^

@CommanderStorm
Copy link
Collaborator Author

CommanderStorm commented Nov 16, 2024

Here is a benchmark of the versions "requesting" tiles (i.e. without the network overhead)

branch features image
master - image
dashmap-based-catalog inline image
dashmap-based-catalog rayon image
dashmap-based-catalog rayon
inline
image

=> it is a significant performance drop, but 60ns to enable updating is likely an okay tradeoff. What do you people think?

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