commit | 91de482fd66f4773b3b8583039c6bcaf1c5727ec | [log] [tgz] |
---|---|---|
author | Nick Vatamaniuc <vatamane@gmail.com> | Mon Mar 21 13:32:31 2022 -0400 |
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | Mon Mar 21 14:17:46 2022 -0400 |
tree | 4661bd693ab1a6af73bc55e968490b8bd0278559 | |
parent | c9a95b0eafb7d132f5d53c41d295f776f4ab2652 [diff] |
Opimtize key tree stemming by using maps instead of sets sets to due to a compiler bug in 22 consumes too much memory and is slower on Erlang 22+ Reproducer: https://gist.github.com/nickva/ddc499e6e05678faf20d344c6e11daaa With sets: ``` couch_key_tree:gen_and_stem(). {8,6848.812683105469} ``` With maps: ``` couch_key_tree:gen_and_stem(). {0,544.000732421875} ```