Quoted or unquoted literals

Richard Gaskin ambassador at fourthworld.com
Tue May 12 16:03:26 EDT 2009


Brian Yennie wrote:
> I'm a bit skeptical that any such difference actually exists. Both the  
> short and long forms should map to the exact same compiled code.  
> Theoretically the long form would take longer to parse / compile the  
> first time, but we're talking about the parsing of individual  
> characters -- something that would have immeasurably small impact.
> 
> When I run the benchmark, the faster method seems to depend on a  
> combination of which one appears first in the script and/or the  
> direction of the wind, and doesn't appear to be repeatable.

I'd thought about that, but when I switched the order I got the same 
results.

So I considered making a new test which swaps the order on the fly, but 
  I'm with you: the possible difference of 0.00002 ms isn't worth the 
trouble.

:)

--
  Richard Gaskin
  Fourth World
  Revolution training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com



More information about the use-livecode mailing list