Skip to content
Snippets Groups Projects
Unverified Commit ee4a989b authored by Igor Munkin's avatar Igor Munkin
Browse files

box: reduce luaT_pushtuple Lua GC memory usage


<luaT_pushtuple> function created a new GCfunc object for a tuple __gc
handler (i.e. <lbox_tuple_gc>), having no upvalues, on each call when
tuple object for Lua world is created.

The change introduces the reference to the single GCfunc object created
on Tarantool startup and stored to Lua registry. Using this approach in
scope of <luaT_pushtuple> is aimed to reduce Lua GC memory usage.

Part of #5201

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring

Reviewed-by: default avatarVladimir Davydov <vdavydov@tarantool.org>
Reviewed-by: default avatarSergey Kaplun <skaplun@tarantool.org>
Signed-off-by: default avatarIgor Munkin <imun@tarantool.org>
(cherry picked from commit 8d7d1460)
parent 48d67e5b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment