tree-buf icon indicating copy to clipboard operation
tree-buf copied to clipboard

Windowing to reduce buffer sizes

Open That3Percent opened this issue 4 years ago • 0 comments

Right now, each leaf node in the tree keeps a single buffer and flushes all elements at once. This consumes much more memory than is necessary.

Instead, allocate buffers of fixed sizes (eg: 64k) and flush to a "window" whenever the buffer is full.

That3Percent avatar May 17 '20 22:05 That3Percent