[tarantool-patches] Re: [PATCH v2 7/9] box: sandbox option for persistent functions
Kirill Shcherbatov
kshcherbatov at tarantool.org
Mon Jun 10 17:15:14 MSK 2019
>> +{
>> + if (luaL_deepcopy_func_ref == LUA_REFNIL) {
>> + int count;
>> + const char *deepcopy = "table.deepcopy";
>> + if (luaT_func_find(L, deepcopy, deepcopy + strlen(deepcopy),
>> + &count) != 0)
>> + return -1;
>
> Wouldn't it be more effecient to copy the table in C, i.e. without the
> aid of 'table.deepcopy' method?
What do you mean?
ref: https://www.freelists.org/post/tarantool-patches/PATCH-v1-48-box-load-persistent-Lua-functions-on-creation,2
More information about the Tarantool-patches
mailing list