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

Custom Ranger Insert/Remove Hooks #45

Open
jhg03a opened this issue Jun 9, 2022 · 1 comment
Open

Custom Ranger Insert/Remove Hooks #45

jhg03a opened this issue Jun 9, 2022 · 1 comment

Comments

@jhg03a
Copy link

jhg03a commented Jun 9, 2022

Having the ability to supply custom insertion/removal function hooks would be really useful if the data being added was a complex object like a map/slice/struct where specific merge behavior could be specified. This is primarily for the use case where I'm inserting multiple times for the same network with different data as this prevents the need to buffer and merge before inserting into the trie.

@jhg03a
Copy link
Author

jhg03a commented Jun 9, 2022

The workaround I use today is to maintain a parallel lookup trie and map so I get the speed of lookups using the trie and maps, but the flexibility to handle merges myself on upserts.

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