3 ms·
You need to make sure you do all your benchmarks in a function. In a funtion, local variables translate to indexes into a local variable array; outside of a fu
by jemfinch 14y ago
You need to make sure you do all your benchmarks in a function. In a funtion, local variables translate to indexes into a local variable array; outside of a function, they remain globals lookups.
Your first reply that "there's always a lookup" isn't right. Some variable accesses (specifically: local variable accesses) do simply map to array accesses.