gaucho-labs / leptos-hotkeys

a declarative way of using keyboard shortcuts + callbacks in leptos applications
https://leptos-hotkeys.vercel.app
MIT License
43 stars 8 forks source link

Use `BTreeSet` for scopes #123

Open friendlymatthew opened 3 weeks ago

friendlymatthew commented 3 weeks ago

Since BTreeSet supports String keys, it's more efficient* to use a data structure without a hash step.

I'd imagine we'd want to do the same with key combinations.





friendlymatthew commented 3 weeks ago

Without a proper bench I don't know if this change it's worth.

+1. Going to profile!