Optimize vector schema with code generation
hediyi opened this issue · comments
hediyi commented
The shape of vectors is determined when constructing the vector schema which leaves an optimization opportunity. The way to approach this is to generate highly specific code for the methods at runtime according to the shape of vectors, where we could get rid of most of the conditionals and arithmetics that are normally needed when looping, which could potentially lead to better performance.