|
From: | Dan Leslie |
Subject: | Re: [Chicken-hackers] Benchmark for "values" - interesting results |
Date: | Fri, 24 May 2013 14:08:10 -0700 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
Hm. At the moment I'm short of imagination how much overhead these internal jumps would incur. I can't yet imagine that those would be for free. Could they?
If I follow John's intention, then it could look something like a switch statement or a series of elseif branches involving simple comparisons against items on the stack. In which case, many CPUs can perform rather aggressive branch prediction and virtually eliminate any overhead.
-Dan
[Prev in Thread] | Current Thread | [Next in Thread] |