From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 22 Feb 2019 21:37:25 +0300 From: Konstantin Osipov Subject: Re: [tarantool-patches] [PATCH v3 1/7] memtx: introduce universal iterator_pool Message-ID: <20190222183725.GD1691@chai> References: <236d59ddf2ed9bb9c9e112763ca2dbd27424482a.1550849496.git.kshcherbatov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <236d59ddf2ed9bb9c9e112763ca2dbd27424482a.1550849496.git.kshcherbatov@tarantool.org> To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com, Kirill Shcherbatov List-ID: * Kirill Shcherbatov [19/02/22 19:29]: > Memtx uses separate mempools for iterators of different types. > Due to the fact that there will be more iterators of different > sizes in a series of upcoming changes, let's always allocate the > iterator of the largest size. If rtree iterator is the one which is largest, let's use a separate pool for it. In general mempools are rather cheap. Each mempool takes a slab for ~100 objects and uses no slabs if there are no objects (e.g. if rtree index is not used, there is no mempool memory for it). -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov