Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90807 invoked by uid 1010); 29 May 2004 09:43:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90703 invoked from network); 29 May 2004 09:43:32 -0000 Received: from unknown (HELO smtp4.actcom.co.il) (192.114.47.66) by pb1.pair.com with SMTP; 29 May 2004 09:43:32 -0000 Received: from [192.168.80.34] (line106-24.adsl.actcom.co.il [192.117.106.24]) by smtp4.actcom.co.il (8.12.11/8.12.11) with ESMTP id i4T9hUG9010605 for ; Sat, 29 May 2004 12:43:31 +0300 Message-ID: <40B85C1B.6010305@actcom.net.il> Date: Sat, 29 May 2004 12:47:07 +0300 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040519 X-Accept-Language: en-gb, en-us, en, he, ru MIME-Version: 1.0 To: internals@lists.php.net References: <40B76426.8080107@php.net> <40B7A984.6070702@actcom.net.il> <40B7B4EB.4080208@php.net> <40B82E44.2000409@actcom.net.il> <40B843DA.3080403@leetspeak.org> In-Reply-To: <40B843DA.3080403@leetspeak.org> X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] switch labels in sub-blocks From: ilya79@actcom.net.il (Ilya Sher) Michael Walter wrote: [snip] > It's an unrolled loop. > > See http://www.lysator.liu.se/c/duffs-device.html for more information > for more elaboration from the author (google works for you, too, btw). Thanks. Got it now. [Somehow did not think of google. My fault. Was kind of confused. The first link given should be yours and not to jargon. It's much better IMHO.] Well, now that I think I understand what is it for, I'm pretty sure it's not very appropriate for PHP(, unless someone will provides an example of the opposite of course). It's kind of clarity vs efficiency. The more the basic operation ("*to = *from++" in the original) is getting bigger (slower) the efficiency gain becomes smaller (correct?) so I would prefer clarity here. I'm not even sure real example in PHP will have close to 50% speed gain. > > Cheers, > Michael >