[Developers] Double quotes around keyword parameter values

Erik Schnetter schnetter at aei.mpg.de
Sun May 29 10:30:53 CDT 2005


On Sunday 29 May 2005 16:54, Jonathan Thornburg wrote:
> That said...  If keyword parameter checks really are a performance
> problem, why not just pre-decode them outside the inner loop?

I do that, you do that, but most people who use keyword parameters don't 
do that.  I'm not saying that it is complicated to do so.  I just find 
that, when I look at random code written by at least halfway competent 
people, it tends to not pre-decode keyword parameters.

Keyword parameters are semantically identical to enums, but performance 
wise orders of magnitude worse.  That is a surprise to people, and 
surprises are bad.  Thus my idea to invent something -- be it macros, 
or a perl preprocessor stage, or whatever -- to make them more 
efficient.  Just how this should be done is open, but I think that 
representing them as strings is a dead end for that.

-erik

-- 
Erik Schnetter <schnetter at aei.mpg.de>   http://www.aei.mpg.de/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20050529/810a049a/attachment-0002.bin 


More information about the Developers mailing list