forked from TrueCloudLab/frostfs-node
[#1146] engine: remove TODO and add a comment
Parallel check seems to be slower, so remove TODO. ``` name \ time/op old new pool Exists/2_shards-40 52.3µs ±23% 91.6µs ± 6% 84.2µs ± 1% Exists/4_shards-40 72.7µs ±11% 121.8µs ± 8% 116.9µs ± 5% name \ alloc/op old new pool Exists/2_shards-40 5.00kB ± 0% 5.03kB ± 0% 5.16kB ± 0% Exists/4_shards-40 9.89kB ± 0% 9.93kB ± 1% 10.19kB ± 0% name \ allocs/op old new pool Exists/2_shards-40 112 ± 1% 115 ± 1% 117 ± 1% Exists/4_shards-40 207 ± 1% 211 ± 1% 216 ± 1% ``` Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
dab6bcabe4
commit
ce76325840
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ func (e *StorageEngine) put(prm *PutPrm) (*PutRes, error) {
|
|||
defer elapsed(e.metrics.AddPutDuration)()
|
||||
}
|
||||
|
||||
_, err := e.exists(prm.obj.Address()) // TODO: #1146 make this check parallel
|
||||
// In #1146 this check was parallelized, however, it became
|
||||
// much slower on fast machines for 4 shards.
|
||||
_, err := e.exists(prm.obj.Address())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue