You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/03/22 22:42:32 UTC
[GitHub] [couchdb] nickva commented on pull request #3963: Opimtize key tree stemming by using maps instead of sets
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: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org