Closed ValarDragon closed 2 years ago
Hey, I can help in getting a release out to fix this, if you are willing to make a PR. I can push a branch for you to target as master has diverged too much to be used for this
smh stale bot
Can we please remove stale bot issue closing =/ Its not even that long of a wait atm
yea ill fix
What's the status of this one?
I guess I want to include it in the notinal tracking issue
@ValarDragon do you think this is needed still?
Yeah this is still useful
great!
So, fair to say this one is more important than #188 ?
that’s good because ah, wow
Pain is a teacher I guess?
Seems set :)
Currently we force every btree item to be
*item
, not justitem
. This in turn causes every set to require new heap allocations, which turns out to be a significant overhead. These allocations cause lots of memory to need to be garbage collected, and this ends up often being the bottleneck, not the actual btree searching operations.In Osmosis, we get that we have ~no item spent in the btree operations, its all spent in allocating the
newPair
onto Heap. Heres a screenshot of a relevant flamegraph output here: