Message ID | 20211203093530.93589-1-chiyutianyi@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | unpack large objects in stream | expand |
On 12/3/2021 4:35 AM, Han Xin wrote: > From: Han Xin <hanxin.hx@alibaba-inc.com> > > Changes since v3: > * Add "size" to "struct input_stream" which used by following commits. > > * Increase the buffer size of "struct input_zstream_data" from 4096 to > 8192, which is consistent with the "fixed_buf" in the "index-pack.c". > > * Refactor "read stream in a loop in write_loose_object()" which > introduced a performance problem reported by Derrick Stolee[1]. Thank you for finding the issue. It seems simple enough to add that size information and regain the performance back to nearly no overhead. Your hyperfine statistics are within noise, which is great. Thanks! -Stolee