[Tarantool-patches] [PATCH 2/2] box: reduce box_process_lua Lua GC memory usage

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Sun Jun 21 18:35:50 MSK 2020


> diff --git a/src/box/lua/call.c b/src/box/lua/call.c
> index e1b1a5e81..e52f16ca4 100644
> --- a/src/box/lua/call.c
> +++ b/src/box/lua/call.c
> @@ -48,6 +48,15 @@
>  #include "mpstream/mpstream.h"
>  #include "box/session.h"
>  
> +/*

Please, change to /**. In out of function comments we use /**
as a comment start.

> + * Handlers identifiers to obtain lua_Cfunction reference from
> + * Lua registry table. These handlers are initialized on Tarantool
> + * startup and are used until the Lua universe is destroyed.
> + * Such approach reduces Lua GC usage since there is no need to
> + * create short-lived GCfunc objects for the corresponding C
> + * function on each iproto CALL/EVAL request or stored Lua
> + * procedure call.
> + */


More information about the Tarantool-patches mailing list