[Freeciv-Dev] Re: inlining functions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Aug 20, 2001 at 10:41:31AM +0300, Markus Linnala wrote:
>
> I propose, we make configure option --use-inline.
>
> If you have this option, we do something like:
>
> #if USE_INLINE
> #define INLINE static inline
> #else
> #define INLINE
> #endif
>
> And also if we are using gcc, add compiler option -Winline
>
> Then we need to find out what functions to inline. I think you
> can have reasonable information by profiling.
This is all nice. I hope however that we can beat most of the things
by smarter planning of data structures/data handling and not macros
and inlining. So it like your spotting of get_player and also the
ongoing discussion about the map normalization. All this will just
elimate the calls and not make them faster.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Make it idiot-proof and someone will make a better idiot."
- [Freeciv-Dev] inlining functions, Jason Dorje Short, 2001/08/17
- [Freeciv-Dev] Re: inlining functions, Kevin Brown, 2001/08/17
- [Freeciv-Dev] Re: inlining functions, Raimar Falke, 2001/08/19
- [Freeciv-Dev] Re: inlining functions, Kevin Brown, 2001/08/19
- [Freeciv-Dev] Re: inlining functions, Raimar Falke, 2001/08/20
- [Freeciv-Dev] Re: inlining functions, Markus Linnala, 2001/08/20
- [Freeciv-Dev] Re: inlining functions,
Raimar Falke <=
- [Freeciv-Dev] Re: inlining functions, Markus Linnala, 2001/08/20
- [Freeciv-Dev] Re: inlining functions, Raimar Falke, 2001/08/20
[Freeciv-Dev] Re: inlining functions, Raimar Falke, 2001/08/20
|
|