Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] Re: (PR#3781) Micro size of structs optimizations
Home

[Freeciv-Dev] Re: (PR#3781) Micro size of structs optimizations

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bursig@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3781) Micro size of structs optimizations
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Wed, 26 Mar 2003 04:58:23 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, Mar 24, 2003 at 09:44:03AM -0800, Per I. Mathisen wrote:
> 
> On Mon, 24 Mar 2003, Rafa³ Bursig wrote:
> > Attached patch almost don't change structs only sort variables. I
> > change some types city.h to show that we can reduce size of game
> > structs even more ( sizeof(struct city) : before 2128,after 2028 )
> 
> But is this really faster? Have you measured this?

It doesn't look so.

> introduces sorting of variables in structs by optimization rather than
> logic, which is not good for code readability reasons.

Ack. We should stick with the logic ordering here.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
    1) Customers cause problems.
    2) Marketing is trying to create more customers.
  Therefore:
    3) Marketing is evil.




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