box: introduce a pair of tuple_format_new helpers
tuple_format_new has lots of arguments, all of them necessary indeed. But a small analysss showed that almost always there are only two kinds of usage of that function: with lots of zeros as arguments and lots of values taken from space_def. Make two versions of tuple_format_new: simple_tuple_format_new, with all those zeros omitted, and space_tuple_format_new, that takes space_def as an argument. NO_DOC=refactoring NO_CHANGELOG=refactoring
Showing
- perf/tuple.cc 2 additions, 2 deletionsperf/tuple.cc
- src/box/blackhole.c 2 additions, 4 deletionssrc/box/blackhole.c
- src/box/memtx_space.c 2 additions, 4 deletionssrc/box/memtx_space.c
- src/box/service_engine.c 2 additions, 5 deletionssrc/box/service_engine.c
- src/box/space_def.c 12 additions, 0 deletionssrc/box/space_def.c
- src/box/space_def.h 16 additions, 0 deletionssrc/box/space_def.h
- src/box/sysview.c 1 addition, 4 deletionssrc/box/sysview.c
- src/box/tuple.c 5 additions, 6 deletionssrc/box/tuple.c
- src/box/tuple_format.c 1 addition, 1 deletionsrc/box/tuple_format.c
- src/box/tuple_format.h 12 additions, 0 deletionssrc/box/tuple_format.h
- src/box/vinyl.c 10 additions, 3 deletionssrc/box/vinyl.c
- src/box/vy_stmt.c 5 additions, 8 deletionssrc/box/vy_stmt.c
- src/box/vy_stmt.h 3 additions, 5 deletionssrc/box/vy_stmt.h
- test/unit/vy_iterators_helper.c 2 additions, 2 deletionstest/unit/vy_iterators_helper.c
- test/unit/vy_mem.c 2 additions, 2 deletionstest/unit/vy_mem.c
- test/unit/vy_point_lookup.c 2 additions, 2 deletionstest/unit/vy_point_lookup.c
Loading
Please register or sign in to comment