dadhi/FastExpressionCompiler

Decrease memory occupied by the LightExpression Block by storing Expression in SmallList (partly on stack)

dadhi opened this issue · 1 comments

dadhi commented

SmallList2 and SmallList4 are storing first 2/4 items on stack and rest (if any) in the heap array.
So we may avoid indirection of going to heap array and store up to 2 (SmallList2) expressions inside the block itself, and the rest in the smaller array on heap.

dadhi commented

done!