3 ms·
Tailcall optimization is compiled as a JMP, so is goto, so I'm curious where would the difference come from?
by slver 6y ago
Tailcall optimization is compiled as a JMP, so is goto, so I'm curious where would the difference come from?
- haberman 6y agoThe tail call design gives more control over register allocation, and gets the compiler to generate better code by putting fast paths and slow paths in separate functions. I tried to explain this in the article and in my link upthread.