|
|
In article <3d514788@news.povray.org>,
"TinCanMan" <Tin### [at] hotmailcom> wrote:
> It would appear that addition is quicker, but perhaps someone else should do
> an independent audit.
> My machine: 466MHz, 320MB, WinXP
Probably something to do with how precedence is handled in the parser.
In your test, you used 1 character identifiers, so both expressions were
the same length. I wonder how much of an effect larger identifiers would
have.
Anyway, it isn't enough of a difference to bother thinking about. If you
want to double a value, I find the N*2 to be clearer and easier to keep
up to date than the N+N version.
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|