On Tue, May 10, 2005 at 04:53:09PM -0400, Ben Anderman wrote:
> What if it kept a cache of some files, so that when other files 
> included them, they wouldn't have to be reread/parsed? I'm not sure how 
> it would tell which ones to cache (I'm pretty sure caching them all 
> would be a bad idea,) but there might be a good way to do it.

Hm, I wonder whether this idea could not be useful in the current
situation as well.

As I understand it, we first read game.cfg without campaign symbols
defined, to produce the main game cache, and then when a campaign is
read, we re-read all the same files, plus the relevant campaign.
Right ?

If we structure the cache as contents of individal files, then we may
be able to turn the campaign caches as increments of the main cache,
thus gaining both in read/parse time, and in on-disk cache size.  How
does that sound ?

-- 
Yann Dirson    <[EMAIL PROTECTED]> |
Debian-related: <[EMAIL PROTECTED]> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>


Reply via email to