From: Igor Munkin <imun@tarantool.org> To: Kirill Yukhin <kyukhin@tarantool.org> Cc: tarantool-patches@dev.tarantool.org, Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH] lua: lua_field_inspect_table without pushcfunction Date: Wed, 10 Jun 2020 16:01:55 +0300 [thread overview] Message-ID: <20200610130155.GO5745@tarantool.org> (raw) In-Reply-To: <20200610121506.74766b5p7mbupum2@tarantool.org> Kirill, On 10.06.20, Kirill Yukhin wrote: > Hello, > > On 18 май 12:37, Sergey Kaplun wrote: > > Currently on encoding table we push cfunction (lua_field_try_serialize) > > to lua stack with additional lightuserdata and table value and after > > pcall that function to avoid a raise of error. > > > > In this case LuaJIT creates new object which will not live long time, > > so it increase amount of dead object and also increase time and > > frequency of garbage collection inside LuaJIT. > > Also this pcall is necessary only in case when metafield __serialize > > of serilizable object has LUA_TFUNCTION type. > > > > So instead pushcfunction with pcall we can directly call the function > > trying to serialize an object. > > --- > > > > branch: https://github.com/tarantool/tarantool/tree/skaplun/no-ticket-lua-inspect-table-refactoring > > I've checked your patch into master. Just in case: you replied to v1 thread but the applied patch relates to v2. I would like to mention that ChangeLog entry changes between versions. > > -- > Regards, Kirill Yukhin -- Best regards, IM
next prev parent reply other threads:[~2020-06-10 13:11 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-18 9:37 Sergey Kaplun 2020-05-18 21:52 ` Vladislav Shpilevoy 2020-05-19 10:29 ` Sergey Kaplun 2020-05-19 20:08 ` Vladislav Shpilevoy 2020-05-22 11:48 ` Aleksandr Lyapunov 2020-05-22 14:05 ` Alexander Turenko 2020-05-25 12:06 ` Sergey Kaplun 2020-06-02 0:19 ` Igor Munkin 2020-06-02 9:36 ` Igor Munkin 2020-06-10 12:15 ` Kirill Yukhin 2020-06-10 13:01 ` Igor Munkin [this message] 2020-06-10 13:39 ` Kirill Yukhin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200610130155.GO5745@tarantool.org \ --to=imun@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --cc=v.shpilevoy@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH] lua: lua_field_inspect_table without pushcfunction' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox