Skip to content

TreeEntries: reduce memory usage while parsing

Zeger-Jan van de Weg requested to merge zj-tree-data-memory-consumption into master

While reading the source of GetTreeEntries, I found some issues with the code as it used to read the full output buffer into memory, instead of using an io.Reader. In this case the fix was to use an io.Reader, and wrap that in a bufio.NewReader() to extend the API to it.

Edited by GitLab Release Tools Bot

Merge request reports