From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 43F6B24404 for ; Sun, 17 Jun 2018 16:08:11 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02zYw8rQaN6D for ; Sun, 17 Jun 2018 16:08:11 -0400 (EDT) Received: from smtp37.i.mail.ru (smtp37.i.mail.ru [94.100.177.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id F1164241F0 for ; Sun, 17 Jun 2018 16:08:10 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH] sql: remove redundant goto from VDBE prologue References: <20180612182607.53450-1-korablev@tarantool.org> From: Vladislav Shpilevoy Message-ID: <24a1a33e-02cc-ccf4-7ff9-a155f5e18781@tarantool.org> Date: Sun, 17 Jun 2018 23:08:08 +0300 MIME-Version: 1.0 In-Reply-To: <20180612182607.53450-1-korablev@tarantool.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org, Nikita Pettik Hello. Thanks for the patch! See 4 comments below. On 12/06/2018 21:26, Nikita Pettik wrote: > Structure of VDBE prologue: > > 0: OP_Init 0 N (address to start) 0 --| > |-> 1: ... | > | ... | > | N: OP_Transaction <------------ > | N+1: (Constant expressions to be saved in registers) > | ... > |-- M: OP_Goto 0 1 0 > > However, last opcode in VDBE program (i.e. OP_Goto) is generated always, > despite the existence of OP_Transaction or constant expressions. > Thus, VDBE program for queries like