Pass ReducerContext
earlier by reference
#2298
Labels
backward-compatible
enhancement
New feature or request
performance
A PR/Issue related to improving performance of stdb
We pass the
ctx: ReducerContext
by move in__call_reducer__
and in a few hops before we actually reachreducer.invoke(&ctx, args)
where it's finally passed by reference. However,size_of_val(&ctx)
is400
, mainly due torng
, so this will likely result inmemcpy
rather than passing in registers. Avoid this by immediately passingctx
by reference in__call_reducer__
.The text was updated successfully, but these errors were encountered: