Re: cvs: php4 /ext/sockets sockets.c
| From: | Boian Bonev | Date: | Sat, 03 Feb 2001 13:44:15 +0000 |
| Subject: | Re: cvs: php4 /ext/sockets sockets.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-3888@lists.php.net to get a copy of this message | ||
hi,
> > What do you mean, switch() is expensive?
> Well, isn't it slower?
perhapse in php switch is slower. in c it sometimes is much faster than
bunch of if statements. i mean the compiler makes jump tables for
consequitive values and there are less comparisons etc. just a range check
and jump.
b.