mafintosh / append-tree

Model a tree structure on top off an append-only log.
MIT License
54 stars 13 forks source link

Put a cache on split() #15

Open pfrazee opened 5 years ago

pfrazee commented 5 years ago

I found the split function was taking up a fair share of CPU in some workloads. I got an order of magnitude speed growth by adding a cache. Might be able to do something as simple as an object map of names to arrays that gets cleared every 15 seconds