src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 542 forks source link

plumbing: format/index perf, buffered reads, reflection removal #1126

Closed saracen closed 5 years ago

saracen commented 5 years ago

Large performance increase by buffering reads.

There were a few instances where binary.Read() would end up using reflection on &plumbing.Hash, rather than treating it as a byte slice. This has now been resolved.