From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 30 Apr 2019 15:50:52 +0300 From: Vladimir Davydov Subject: Re: [PATCH v3 3/7] lua: optimize creation of a tuple from a tuple Message-ID: <20190430125052.cxxu4kkphpg7lz5x@esperanza> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Alexander Turenko Cc: tarantool-patches@freelists.org List-ID: On Wed, Apr 10, 2019 at 06:21:21PM +0300, Alexander Turenko wrote: > Don't parse tuple data, just copy it. I don't understand: luamp_encode_tuple doesn't parse or decode a tuple. It simply copies it to the stream. This patch simply eliminates an extra memcpy, right? Is this small optimization worth complicating the code?