[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]
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.
|
|