Closed ldkingvivi closed 3 years ago
LGTM! All the tests in my code pass when replacing with this modified version, looks like an easy win for double the performance here!
This PR improves insert performance by 60% for my use case and also reduces heap memory usage by 25%. Can we get this merged and released?
I am sorry guys for the neglect here, been pretty swamped and missed the update here. Looks good and merged!
include #37 but remove unnecessary changes, add the benchmark on this as well. before
after
change newPathprefixTrie to not call newPrefixTree, save time on extra parseCIDR and NewNetwork before
after