|
From: | Bo Lorentsen |
Subject: | Re: [glob2-devel] scripting language |
Date: | Wed, 25 May 2005 22:17:41 +0200 |
User-agent: | Debian Thunderbird 1.0.2 (X11/20050331) |
address@hidden wrote:
Ok, thanks for the hint, I am quite happy now. This is the final argument against the class per bytecode, this can't be done much faster as far as I see.Are you sure switch makes the same kind of code as above ? I thougth it made a lot of compare/next steps !With any minimally optimizing compiler, yes it does.
I have just testet gcc with a -S, and with a few cases in the switch, it generates the code I feared, but as I add up entries, the code gcc makes change to a nice label array, even if not optimizing.
/BL
[Prev in Thread] | Current Thread | [Next in Thread] |