[tarantool-patches] [PATCH v2 2/2] tuple: introduce bigref hints
Vladimir Davydov
vdavydov.dev at gmail.com
Sat Jun 9 15:39:34 MSK 2018
On Sat, Jun 09, 2018 at 02:49:09PM +0300, imeevma at tarantool.org wrote:
> Typical usage of bigrefs: allocate many bigrefs in Lua in a row,
> reach memory threshold and delete many bigrefs in a row.
>
> Hits allow to make multiple refs deletions or creations be
> faster. For example, before the patch complexity of N refs with
> C capacity in a row: O(C) * N.
> After the patch: O(C) + N.
It's a decent optimization, but why can't we simply use a free list
like structure, i.e. store the index of the next free entry in each
unoccupied array element?
More information about the Tarantool-patches
mailing list