Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets
Home

[Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch][RFC] Reduce superfluous tile_info packets
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Thu, 25 Oct 2001 06:15:00 -0700 (PDT)

--- Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Wed, Oct 24, 2001 at 05:51:12PM -0700, Raahul Kumar wrote:

> Amount of bytes goes down to 9.7%
>

Excellent work. It looks like you have cut out most of the fat from the packet
code.
 
> > > 2: transmitted 185739 bytes in 6000 packets;average size per packet 30
> bytes
> 
> Amount of bytes goes down to 34.7%
> 
> > Impressive. What about throught out the game? I suspect your patch should
> > reduce the amount of packets overall. It would be nice to see a graph
> > of total amount of packets sent before and packets after.
> 
> I won't collect the numbers for various stages of the game. This is
> burdensome and quite useless IMHO. However I can give another data
> point (same as above but with more turns):
> 
>   without patch:
> 2:   [ 7]:  87708 packets;   789372 bytes total;     9 bytes/packet average
> 2: received 1091048 bytes in 92000 packets;average size per packet 11 bytes
> 
>   with patch:
> 2:   [ 7]:   4251 packets;    38259 bytes total;     9 bytes/packet average
> 
> Amount of bytes goes down to 4.8%
> 
> 2: received 304028 bytes in 8000 packets;average size per packet 38 bytes
> 
> Amount of bytes goes down to 27.8%
> 
> So this will yield better result with longer games.
>

I quite like that. It's a good thing packets sent are being reduced considering
that when the CMA goes into CVS, the total amount of packets sent is going to
increase dramatically. A client side ai is always going to send far more
packets
than a server side one. Maybe bzip2 should be considered.

> With the patch the packet type which uses the most bytes is city_info:
> 
> 2:   [11]:     42 packets;    48474 bytes total;  1154 bytes/packet average
> 
>       Raimar
> 
> -- 
>  email: rf13@xxxxxxxxxxxxxxxxx
>  "Life is too short for reboots."
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


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