xk6-frostfs/internal/registry
Pavel Karpy c43f73704e [#30] grpc: Cache object getters
Includes:
1. Logic simplification: no need to call `ObjSelector.Reset` from JS code,
everything could be done inside the Go code. Remove unused mutexes.
2. Do not handle object twice ever: Once handled, any error is expected to be
logged on the JS side and never be handled again. It solves "already removed"
error.
3. Object caching: no need to call bolt's `View` on every object removal: it
blocks other calls and slows down the execution. Read 100 objects (or less if
not available yet), cache them and send to buffered channel.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-11-03 13:11:50 +03:00
..
obj_registry.go [#30] grpc: Cache object getters 2022-11-03 13:11:50 +03:00
obj_selector.go [#30] grpc: Cache object getters 2022-11-03 13:11:50 +03:00
registry.go [#30] grpc: Cache object getters 2022-11-03 13:11:50 +03:00