Generate data pack/unpack code at runtime
Opened this issue · 0 comments
rockeet commented
Now MyTopling inherited MyRocks's pack/unpack code, which is slow because it pack/unpack data dynamically, in table scan stage, pack/unpack consume , as show in this flame graph:
We can optimize it as below:
- generate pack/unpack C++ code on create/alter table and create index
- compile the code into shared lib
- calling pack/unpack function in the shared lib
We expecting this will greatly improve pack/unpack performance.