wesnoth-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wesnoth-dev] A WML idea: import


From: Yann Dirson
Subject: Re: [Wesnoth-dev] A WML idea: import
Date: Thu, 12 May 2005 21:52:43 +0200
User-agent: Mutt/1.5.6+20040907i

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    <address@hidden> |
Debian-related: <address@hidden> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]