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: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [RFC][Patch] Reduce bandwith by using deltas
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 4 Nov 2002 22:04:50 +0000 (GMT)

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.

> > 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?

  - Per



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