On Sat, Nov 26, 2005 at 02:33:58PM +0100, David Philippi wrote:
> Am Samstag, den 26.11.2005, 14:17 +0100 schrieb Yann Dirson:
> > - improve the zipios thing, which is really not efficient
> > performance-wise
>
> Just out of curiosity - what is the main advantage of zipios? AFAIK few
> are using it because it slows the game considerably. If it is just disk
> space, transparently support gzip/bzip2 compressed WML files might be
> more usefull...
Because of the way most filesystems are implemented, each file uses an
integer number of blocks. Thus it is more efficient space-wise to
have a single file instead of many small ones.
The main use I have for it is the port to the ipaq, or to any platform
with small storage space.
It also provides a single API to merge a set of file collections,
which can be plain directory trees, zip files, or whatever you wish to
implement a C++ derived class for. When we use this API for wesnoth,
we do not have to to any special treatment for any kind of storage,
including user's ~/.wesnoth, which is only added once in the
CollectionCollection object. That means simpler code in wesnoth
itself.
But the problem appears to be that the implementation of zipios itself
is inefficient, so we shall just fix it and send a patch upstream :)
Best regards,
--
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/>