Closed laizy closed 5 years ago
reduce clone from O(n^2) to O(n) where n is the trie depth.
O(n^2)
O(n)
before: bench_trie_insert_worst_case ... bench: 202,780,700 ns/iter (+/- 47,220,500) current: bench_trie_insert_worst_case ... bench: 1,902,175 ns/iter (+/- 161,597)
build failed caused by benchmark case can not allowed on the stable release channel, I will remove this.
Cool! But if possible, could you please use https://github.com/bheisler/criterion.rs to add benchmark case?
reduce clone from
O(n^2)
toO(n)
where n is the trie depth.