nickva commented on pull request #3963: URL: https://github.com/apache/couchdb/pull/3963#issuecomment-1075723247
Trying the optimization with a production revision tree with 6638 live conflicts. ``` length(couch_key_tree:get_all_leafs(Tree)). 6638 ``` Measured time to run `couch_key_tree:stem(Tree, 1000)` ### Before this commit | Erlang Version | Time (sec) | Memory (GBs) | |----------------|-------|---------| | 20 | 221 | 1.2 | | 23 | 1382 | 45 | ### After this commit | Erlang Version | Time (sec) | Memory (GBs) | |----------------|-------|---------| | 20 | 3 | 1.2 | | 23 | 3 | 1.3 | In summary, on Erlang 23, we got a nice **460x** speedup and **34x** memory usage reduction -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
