From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 43EAE445320 for ; Wed, 29 Jul 2020 16:41:27 +0300 (MSK) Date: Wed, 29 Jul 2020 16:41:25 +0300 From: Kirill Yukhin Message-ID: <20200729134125.hsh4r5rqqatls3ei@tarantool.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH] lua/utils: improve luaT_newthread performance List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org, Vladislav Shpilevoy Hello, On 20 июл 14:28, Igor Munkin wrote: > created a new GCfunc object for the helper invoked in a > protected frame (i.e. ) on each > call. The change introduces a static reference to a GCfunc object for > to be initialized on Tarantool startup to > reduce Lua GC memory usage. > > Furthermore, since yields nothing on guest stack, the newly > created Lua coroutine need to be pushed back to prevent its sweep. So > to reduce guest stack manipulations is replaced with > and the resulting Lua thread is obtained via guest stack. > > Signed-off-by: Igor Munkin I've checked your patch into 1.10, 2.4, 2.5 and master. -- Regards, Kirill Yukhin