Test before merging, but this should reduce the number of SLOADs significantly. Not only because we save everything on one slot, but because I think (need to test) on run every time you do ilks[ilk] it does an SLOAD. By preloading with Ilk storage i = ilks[ilk]; every other time you call i it uses MLOAD :)
Test before merging, but this should reduce the number of
SLOAD
s significantly. Not only because we save everything on one slot, but because I think (need to test) onrun
every time you doilks[ilk]
it does anSLOAD
. By preloading withIlk storage i = ilks[ilk];
every other time you calli
it usesMLOAD
:)