Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: [RFC][Patch] Reduce bandwith by using deltas
Home

[Freeciv-Dev] Re: [RFC][Patch] Reduce bandwith by using deltas

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [RFC][Patch] Reduce bandwith by using deltas
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Tue, 5 Nov 2002 08:35:04 +0100

On Mon, Nov 04, 2002 at 10:04:50PM +0000, Per I. Mathisen wrote:
> On Mon, 4 Nov 2002, Raimar Falke wrote:
> > > Maybe not, I am not sure. But at least you do not require freeciv coders
> > > to know Python... and a programming language you don't know is never
> > > pretty.
> > >
> > > > The disadvantage I see is that you can't look at the output.
> > >
> > > gcc -E | more, no problem.
> >
> > Have you looked at the output?
> 
> Many times. If you are careful with where you put comments, keep includes
> to an absolute minimum and avoid system headers (which is possible here),
> then the output will be nice and clean.

I will produce a solution with a python generator and if you want to
implement another solution feel free.

> > > Apart from bools, do we really waste so many bits for the other types?
> 
> > If I calculated correctly this are 47bits = 6byte by 26
> > bytes+6bits=27bytes total. This is 22% reduction.
> 
> And x > 0% reduction in speed. I suppose bit shifts are cheap, but I would
> like to see some measurements here. So how about implementing without bit
> compression first, and then try that afterwards when we can measure the
> difference?

This was also my plan.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "We just typed make..."
    -- Stephen Lambrigh, Director of Server Product Marketing at Informix,
                         about porting their Database to Linux


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