Remove the DispatchVariableRef
Workflows
#159
Labels
breaking
This will introduce breaking changes to the API
performance
Something is slowing the code down
Recent performance testing as revealed that the legacy
dispatch_variable_ref
paradigm of constantly creatingDispatchVariableRef
s fromGeneralVariableRef
s is adding a considerable amount of overhead. For example consider the simple query of theobject_nums
of a infinite variables.Omitting the dispatch variable makes it 4 times faster. We can probably speed it up even more if we eliminate the need to create the index every time as well.
Hence, we should rework things to just dispatch based on a variable type stored in
GeneralVariableRef
so we don't have to reallocate. This will require that the entire code base be updated... Moreover, if we want to simplify the indices, we'll need to consider the unique case for dependent infinite parameters that need two indexing numbers.The text was updated successfully, but these errors were encountered: