sql: use 64b bitmasks instead of 32b where possible
In some cases(like foreign keys) the SQL code used 32-bit bit mask, while 64-bit bit masks will perform better column optimizations. There was refactored code to work with 64b bitmasks where required. The 32b bitmasks are still used to specify constant OP_Function arguments because this change would require changing the P1 type of the VDBE p1 argument, which is not desirable. Moreover, the 64 function's arguments is an explicit overkill. The ticket was created in connection with the introduction of foreign keys and their use of 32-bit bit masks. In the rest of the scripts in SQL already use 64 bit masks, and the "smart" bit of the mask is not applicable. Closes #3571
Showing
- src/box/alter.cc 2 additions, 8 deletionssrc/box/alter.cc
- src/box/column_mask.h 14 additions, 0 deletionssrc/box/column_mask.h
- src/box/sql/delete.c 2 additions, 5 deletionssrc/box/sql/delete.c
- src/box/sql/resolve.c 6 additions, 13 deletionssrc/box/sql/resolve.c
- src/box/sql/sqlInt.h 26 additions, 20 deletionssrc/box/sql/sqlInt.h
- src/box/sql/trigger.c 7 additions, 7 deletionssrc/box/sql/trigger.c
- src/box/sql/update.c 9 additions, 15 deletionssrc/box/sql/update.c
Loading
Please register or sign in to comment