sql: fix perf degradation on name normalization
Because sql_normalize_name used to be called twice - to estimate the size of the name buffer and to process data querying the UCaseMap object each time performance in SQL felt by 15%. This patch should eliminate some of the negative effects of using ICU for name normalization. Thanks @avtikhon for a bechmark Follow up e7558062
Showing
- src/box/sql/expr.c 13 additions, 16 deletionssrc/box/sql/expr.c
- src/box/sql/parse.y 11 additions, 10 deletionssrc/box/sql/parse.y
- src/box/sql/sqlInt.h 2 additions, 7 deletionssrc/box/sql/sqlInt.h
- src/box/sql/trigger.c 14 additions, 8 deletionssrc/box/sql/trigger.c
- src/box/sql/util.c 42 additions, 35 deletionssrc/box/sql/util.c
- src/lib/coll/coll.c 7 additions, 1 deletionsrc/lib/coll/coll.c
- src/lib/coll/coll.h 3 additions, 0 deletionssrc/lib/coll/coll.h
- src/lua/utf8.c 3 additions, 12 deletionssrc/lua/utf8.c
- test/sql/errinj.result 8 additions, 1 deletiontest/sql/errinj.result
- test/sql/errinj.test.lua 2 additions, 0 deletionstest/sql/errinj.test.lua
Loading
Please register or sign in to comment