Re: Which is quicker, if-else statements
| From: | Ernest E Vogelsinger | Date: | Wed, 19 Mar 2003 10:27:19 +0000 |
| Subject: | Re: Which is quicker, if-else statements | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140267@lists.php.net to get a copy of this message | ||
At 04:38 19.03.2003, -{ Rene Brehmer }- said:
--------------------[snip]--------------------
>I'm totally lost here ... what does that mean???
>
>Reminds me of assembler, except that assembler is more like:
>0001 jnp e002 e003 0005
>0002 jmp e002 e003 0008
>
>And so on (not sure if that's fully correct ... haven't touched assembler
>since '92) ...
>
>Please ellaborate Ernest ...
--------------------[snip]--------------------
Yup, assembler, specifically Intel x86 using the 32bit registers (I said
"Intel speak" before the code). The code you present must be for a
different processor that I don't know... well, haven't programmed in asm
since - wait let me think - 85? Have still some asm manuals around, but I
don't think the timing numbers are still relevant for todays caching cpu's...
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/