Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYSTEMDS-3805] Minor performance improvement scalar right indexing
For operations like as.scalar(data[i,1]), we now use a fast path which improved the performance for 10M iterations as follows: 1 rightIndex 5.513 10000000 (old) 1 rightIndex 4.717 10000000 (new) This is generally useful also for cases where there is no as.scalar. However, for the case as.scalar(data[i,1]) we should directly compile a new rixScalar instruction which look up the value, avoids matrixblock allocation, and gets rid of unnecessary createvar, cast, and rmvar instructions.
- Loading branch information