Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/8] Get rid of Vinyl's mem_format_with_colmask
@ 2018-10-14 18:16 Vladimir Davydov
  2018-10-14 18:16 ` [PATCH 1/8] vinyl: move update optimization from write iterator to tx Vladimir Davydov
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Vladimir Davydov @ 2018-10-14 18:16 UTC (permalink / raw)
  To: kostja; +Cc: tarantool-patches

There are two formats for memory statements in Vinyl, vy_lsm::mem_format
and vy_lsm::mem_format_with_colmask. The only difference between them is
that the latter allows to store column mask inside tuples. It is used to
optimize out tautological updates in the write iterator. Turns out that
we can easily do without it as this patch set demonstrates.

I've always wanted to drop this format because I hate the very idea of
tuple_extra (that's why I dropped upsert format a while ago as well).
However, the reason why I'm doing this now is that it is the only thing
why we need tuple_format_dup. Currently, tuple_format_dup is basically a
memcpy, but once JSON indexes are introduced it's going to become much
more complex than just that so we'd better drop it now.

https://github.com/tarantool/tarantool/commits/dv/vy-zap-format-with-colmask

Vladimir Davydov (8):
  vinyl: move update optimization from write iterator to tx
  vinyl: factor out common code of UPDATE and UPSERT
  vinyl: do not use column mask as trigger for turning REPLACE into
    INSERT
  vinyl: explicitly pass column mask to vy_tx_set
  vinyl: explicitly pass column mask to vy_check_is_unique
  vinyl: zap vy_stmt_column_mask and mem_format_with_colmask
  tuple: zap tuple_format_dup
  tuple: zap tuple_extra

 src/box/blackhole.c                |   2 +-
 src/box/memtx_engine.c             |  10 +--
 src/box/memtx_space.c              |   2 +-
 src/box/tuple.c                    |  12 +--
 src/box/tuple.h                    |  30 ++-----
 src/box/tuple_format.c             |  28 +-----
 src/box/tuple_format.h             |  33 +------
 src/box/vinyl.c                    | 179 ++++++++++++++++---------------------
 src/box/vy_lsm.c                   |  30 ++-----
 src/box/vy_lsm.h                   |   8 --
 src/box/vy_mem.c                   |  14 +--
 src/box/vy_mem.h                   |  17 ++--
 src/box/vy_stmt.c                  |  28 +++---
 src/box/vy_stmt.h                  |  55 +++---------
 src/box/vy_tx.c                    |  36 ++++----
 src/box/vy_tx.h                    |  11 ++-
 src/box/vy_write_iterator.c        |  47 +++-------
 src/box/vy_write_iterator.h        |  26 +-----
 test/unit/vy_cache.c               |   9 +-
 test/unit/vy_iterators_helper.c    |  36 +++-----
 test/unit/vy_iterators_helper.h    |  19 +---
 test/unit/vy_mem.c                 |   2 +-
 test/unit/vy_point_lookup.c        |  15 ++--
 test/unit/vy_write_iterator.c      | 105 +---------------------
 test/unit/vy_write_iterator.result |  54 +++++------
 25 files changed, 237 insertions(+), 571 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-10-24 11:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-14 18:16 [PATCH 0/8] Get rid of Vinyl's mem_format_with_colmask Vladimir Davydov
2018-10-14 18:16 ` [PATCH 1/8] vinyl: move update optimization from write iterator to tx Vladimir Davydov
2018-10-23  7:35   ` [tarantool-patches] " Konstantin Osipov
2018-10-14 18:16 ` [PATCH 2/8] vinyl: factor out common code of UPDATE and UPSERT Vladimir Davydov
2018-10-23  7:36   ` [tarantool-patches] " Konstantin Osipov
2018-10-14 18:16 ` [PATCH 3/8] vinyl: do not use column mask as trigger for turning REPLACE into INSERT Vladimir Davydov
2018-10-23  7:37   ` [tarantool-patches] " Konstantin Osipov
2018-10-14 18:16 ` [PATCH 4/8] vinyl: explicitly pass column mask to vy_tx_set Vladimir Davydov
2018-10-14 18:16 ` [PATCH 5/8] vinyl: explicitly pass column mask to vy_check_is_unique Vladimir Davydov
2018-10-14 18:16 ` [PATCH 6/8] vinyl: zap vy_stmt_column_mask and mem_format_with_colmask Vladimir Davydov
2018-10-14 18:16 ` [PATCH 7/8] tuple: zap tuple_format_dup Vladimir Davydov
2018-10-14 18:16 ` [PATCH 8/8] tuple: zap tuple_extra Vladimir Davydov
2018-10-23  7:42   ` [tarantool-patches] " Konstantin Osipov
2018-10-23  8:32     ` Vladimir Davydov
2018-10-23  7:32 ` [tarantool-patches] Re: [PATCH 0/8] Get rid of Vinyl's mem_format_with_colmask Konstantin Osipov
2018-10-23  8:22   ` Vladimir Davydov
2018-10-24 11:13 ` Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox