mikolalysenko / mudb

Low latency state replication for the web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimize vector schema with code generation

hediyi opened this issue · comments

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.