feat: improve patch delta performance#1180
Conversation
|
I've tested with several repositories and time is in the same ballpark as before but somehow uses more memory or is a but slower. This is a similar benchmark as the one provided but downloading a linux repo I have locally and downloading all history: Before: After: I've also timed the execution of Before: After: I don't know what can be happening as the changes look seem to improve memory allocation. |
Signed-off-by: Nao YONASHIRO <[email protected]>
Signed-off-by: Nao YONASHIRO <[email protected]>
Signed-off-by: Nao YONASHIRO <[email protected]>
Signed-off-by: Nao YONASHIRO <[email protected]>
8184212 to
d456ce9
Compare
|
Please give me your memory profile. go test -bench BareClone -benchmem -timeout 10000s -memprofile=mem.pb.gz -cpuprofile=cpu.pb.gzI can't reproduce ... |
|
@orisano After your rebase I get similar numbers. These are the results of the tests with linux: Bear in mind that this is not your benchmark. In your benchmark you are cloning with Thanks! @mcuadros I've tested with smaller repos and I don't see any regression. Gains are not spectacular but I believe it's a good base to improve memory allocations. |
ref: #1170