[Freeciv-Dev] Re: [RFC][Patch] Inline
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Raimar Falke wrote:
There was a major network breakdown (three universities and ten other
research institutes were offline). So I could commit patches. I took
the time to work in the performance front.
The attached patch is a first cut on inlining functions. It does:
Wow, that's a lot. Most of it is just moving code around, though; only
a little bit changes code (e.g. from macro to function). Do you plan to
commit it all at once (if you do commit it)?
If these results can be beaten by macros I would like to get such a
patch to get a look at the asm code.
When we tested this before, I compared the results from changing
normalize_map_pos from a macro to a function. It ended up being
slightly faster as a macro, although i do not have assembly code handy :-).
In any case, there is a tradeoff for using a macro: the code becomes
significantly less readible, both in the frontend (interface) and
backend (which is also in the interface...). And you know my opinion on
that.
jason
[Freeciv-Dev] Re: [RFC][Patch] Inline,
Jason Short <=
[Freeciv-Dev] a civserver patch testing framework (was: [RFC][Patch] Inline), Reinier Post, 2002/03/21
[Freeciv-Dev] Re: [RFC][Patch] Inline, Raimar Falke, 2002/03/21
|
|