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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php