3 ms·
What a great write up. > Swift reserves a callee-preserved register for a method’s self argument (pointer) to make repeated calls faster. Cool? Years ago (200
by travisgriggs 4y ago
What a great write up.
> Swift reserves a callee-preserved register for a method’s self argument (pointer) to make repeated calls faster. Cool?
Years ago (2000 I think), I remember Eliot Miranda explaining that the biggest optimization—-over and above all the jit stuff—in the VisualWorks Smalltalk VM basically came down to something very similar: very specific management of registers for the commonest of calling patterns.