mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
ffd497673f
it would seem like using `bufio.Scan()` is very slow for heavy concurrent I/O, ie. when r.Body is slow , instead use a proper binary exchange format, to marshal and unmarshal the LockArgs datastructure in a cleaner way. this PR increases performance of the locking sub-system for tiny repeated read lock requests on same object. ``` BenchmarkLockArgs BenchmarkLockArgs-4 6417609 185.7 ns/op 56 B/op 2 allocs/op BenchmarkLockArgsOld BenchmarkLockArgsOld-4 1187368 1015 ns/op 4096 B/op 1 allocs/op ``` |
||
---|---|---|
.. | ||
.gitignore | ||
drwmutex_test.go | ||
drwmutex.go | ||
dsync_test.go | ||
dsync-server_test.go | ||
dsync.go | ||
lock-args_gen_test.go | ||
lock-args_gen.go | ||
lock-args.go | ||
rpc-client-impl_test.go | ||
rpc-client-interface.go |