POV-Ray : Newsgroups : povray.general : Parsing question... : Re: Parsing question... Server Time
5 Aug 2024 18:23:50 EDT (-0400)
  Re: Parsing question...  
From: Christopher James Huff
Date: 7 Aug 2002 16:17:43
Message: <chrishuff-F7AA80.15074607082002@netplex.aussie.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.