tree.h
14.4 KB
-
write_tree: use shared buffer for writing trees · 87aaefe2
The function to write trees allocates a new buffer for each tree. This causes problems with performance when performing a lot of actions involving writing trees, e.g. when doing many merges. Fix the issue by instead handing in a shared buffer, which is then re-used across the calls without having to re-allocate between calls.
Michael Tesch committed