Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] Re: Question on savegame data
Home

[Freeciv-Dev] Re: Question on savegame data

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Question on savegame data
From: Christian Knoke <chrisk@xxxxxxxxx>
Date: Wed, 24 Aug 2005 09:30:56 +0200

On Wed, Aug 24, 2005 at 12:18:36AM +0200, Christian Knoke wrote:
> On Tue, Aug 23, 2005 at 03:51:41PM -0400, Jason Dorje Short wrote:
> 
> > plrtile->updated shows how old the data on the tile is.  This has 
> > nothing to do with the client but is used when exchanging shared vision. 
> >  When both players don't have current vision of a tile the "newer" 
> > information is taken to be the correct one.
> 
> It might savely be reduced to store only 12 bit, which reduces uncompressed
> savegames by 7 to 9 percent?
> 
> A quick statistical test shows, that with compressed files, it tends to be 9
> percent.

I was inaccurate. To put this this to an end, here are better numbers:

Reducing the variable size for last_updated in player maps from 16 to 12 bit

Estimated on base of removing map_ud lines from savegames, for a broad
mixture of 23 savegames from real games of all periods.

Savings in blocksize used (reiserfs measured with du):

uncompressed:  9.6 %
gzip -6:       6.8 %
bzip2 -9:      5.3 %

Probably too big a hassle, with new bugs and savegame incompatability.

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.



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