POV-Ray : Newsgroups : povray.pov4.discussion.general : Caching parsed code : Re: Caching parsed code Server Time
2 May 2024 13:45:51 EDT (-0400)
  Re: Caching parsed code  
From: clipka
Date: 16 Apr 2009 01:05:00
Message: <web.49e6bb9ae0976a9b255d1edc0@news.povray.org>
nemesis <nam### [at] nospam-gmailcom> wrote:
> I assumed files were reopened when calling macros exactly to provide
> them with some clucky local context. :P  If not, I don't see the reason
> for the reopening...

Because in former times having too many files open simultaneously used to be a
problem?

If local variable context was an issue, then macros in the main file wouldn't be
able to have local variables.

> I'll dig in now, but since my point is replacing all that, I don't think
> I'll lose my time trying to understand it in the first place... :P

Right.

> Oh, almost forgot pre-compiled includes... but not to scare people off
> it's worth reminding it should be something akin to how Python does,
> source and bytecode side-by-side.  It just loads the bytecode if already
> compiled and if not, compiles and stores for next time.

Yep, I guess so. With some hash of the include file stored in the bytecode
version of course.


Post a reply to this message

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