This function is horrible for the locality of the data and causes the most cache misses, as it is used in the tight variable replacement loops. A much better way of doing this is first renaming the variables so that their local and global position can be decided directly by the name/index. Something similar was done in Ijtihad.
This function is horrible for the locality of the data and causes the most cache misses, as it is used in the tight variable replacement loops. A much better way of doing this is first renaming the variables so that their local and global position can be decided directly by the name/index. Something similar was done in Ijtihad.