[Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9020 >
Per Inge Mathisen wrote:
> However, the latter, turning plain static into static inline, I think a
> little less hesitation should be applied.
>
> Of course, some caution should still be applied, though, as inlining a
> static function that is used in a lot of places can degrade performance
> instead of improving it. So I think static inline should only be used when
> the function is only called from a very few places, depending on the size
> of the function.
I disagree. I think it would be better just to enable a higher
optimization level in the compiler. Static functions can easily be
automatically inlined by an intelligent compiler, and we can hope it
will do a better job than we would at guessing which ones are the best
to inline.
jason
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Per Inge Mathisen, 2004/06/18
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile,
Jason Short <=
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Gregory Berkolaiko, 2004/06/18
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Jason Short, 2004/06/18
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Per Inge Mathisen, 2004/06/18
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Vasco Alexandre da Silva Costa, 2004/06/18
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, rwetmore@xxxxxxxxxxxx, 2004/06/19
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Jason Short, 2004/06/19
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Gregory Berkolaiko, 2004/06/20
- [Freeciv-Dev] Re: (PR#9020) optimization of map_get_tile, Jason Short, 2004/06/20
|
|