vectorize_engine icon indicating copy to clipboard operation
vectorize_engine copied to clipboard

Using native type instead of datum to represent values in vtype

Open zhangh43 opened this issue 6 years ago • 0 comments

Datum is general, but not optimized for performance. In vectorized engine, vtype is a column batch which contain values of the same type(int2, float4 etc.). If we store it as native type, it could:

  1. accelerate scan for column store.
  2. remove XXXGetDatum and DatumGetXXX cost.
Konstantin wrote:
Will it be more efficient to use native arrays in vtype instead of array of Datum? I think it will allow compiler to generate more efficient code for operations with float4 and int32 types.

zhangh43 avatar Dec 09 '19 02:12 zhangh43