in reply to Perl's own Duff's device?

Note: in case you wonder and before you point it out... since this has directly or indirectly to do with some sort of optimisation: yes, I know that "premature optimisation is the root of all evil", and I'm asking just out of curiosity!

It's called "XS". :-) It's hard to understand, has a bunch of odd little rules and quirks, and makes the relevent perl function typically run several times faster than the more straightforward encoding.

It's also a right pain to debug and maintain, again, like Duff's device, and other assorted hackery and trickery. ;-)

--
Ytrew

Replies are listed 'Best First'.
[OT] Re: We call it "XS"
by blazar (Canon) on Dec 23, 2005 at 09:06 UTC
    Good point, although... may I recommend you to put an indication about the old subject when changing it in a reply? This has been discussed here several times. There are good reasons to do so, mostly related to searching: having been bashed myself, and explained why, now I stick to this "rule" whenever I really feel the need to change it, which happens quite rarely, in fact.