From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 24 Jan 2019 20:58:55 +0300 From: Konstantin Osipov Subject: Re: [tarantool-patches] Re: [PATCH v1 1/1] implement mp_stack class Message-ID: <20190124175855.GA8694@chai> References: <20190117115843.nqellm5mmsglqnlf@tkn_work_nb> <842c55cd-5d3f-e857-42f4-94d648c88273@tarantool.org> <20190117163409.hvga32kxxgcc5sat@tkn_work_nb> <1ba698d1-8450-f2d3-7717-11adbf0d5f4f@tarantool.org> <20190121112541.hkqylj7hwcjeq526@tkn_work_nb> <2259a346-76dd-f721-176f-bfad39b25b5e@gmail.com> <20190121202529.r7wwnzcesdh34sda@esperanza> <09a7ccb3-fa8b-8691-ea26-c3146c42d839@tarantool.org> <20190122202136.uag7irkm2ltg3dkh@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: tarantool-patches@freelists.org Cc: Vladimir Davydov List-ID: * Kirill Shcherbatov [19/01/23 11:24]: > Introduced a new mp_stack class to make complex msgpack parsing. > The structure is needed in order to facilitate the decoding > nested MP_ARRAY and MP_MAP msgpack containers without recursion. > This allows you to determine that the parsing of the current > container is complete. > Reworked mp_snprint and mp_fprint routines to use mp_stack > instead of recursion. Sorry to be nitpicking, but do we really need more than 65k frames? With 2-byte frame identifiers we can fit a single frame into a single 8-byte register. > > Needed for #1012 -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov