POV-Ray : Newsgroups : povray.general : coding question--position of #if block in SDL : Re: coding question--position of #if block in SDL Server Time
30 Jul 2024 02:27:42 EDT (-0400)
  Re: coding question--position of #if block in SDL  
From: Jim Holsenback
Date: 28 Jan 2010 12:45:30
Message: <4b61cd3a@news.povray.org>
> I'm not a software engineer or a full-blown programmer,

I'm not the former ... some would debate that I'm even the later

> two) concerns the scene's parse time:
> 1) When the #if is finally 'processed', does POV-Ray (or any coding 
> language)
> have to search back through the entire code to find A?
> 2) If so, would the scene parse faster if the #if block was nearer to the
> #declared A?

don't think it matters, as after the scene file has passed the parse phase 
and read into memory, variables are referenced by a pointer to it's location 
in memory not a sequential search of the memory.

Jim


Post a reply to this message

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