[Freeciv-Dev] Re: server/settlers.c cleanup 2
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, 13 Apr 2002 per@xxxxxxxxxxx wrote:
> I'd say that is an acceptable approximation to the behaviour of the old
> amortize.
>
> I timed the tests, and old amortize performed as follows:
> real 0m0.770s
> user 0m0.740s
> sys 0m0.000s
>
> The new amortize as follows:
> real 0m0.549s
> user 0m0.550s
> sys 0m0.000s
>
> Strange, huh? Lesson: It is difficult to outsmart a good compiler and a
> modern CPU with performance hacks.
wow...
I guess it's some FP being done separately trickery.
what happens if you precompute the whole range??
BTW, I don't know what maintainers say but you can concievably separate
amortize into a separate patch and then look for real behaviour changes.
(As I am working through a backlog of email, this opinion has been
probably already expressed).
G.
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, (continued)
- Message not available
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Ross W. Wetmore, 2002/04/14
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Per I Mathisen, 2002/04/14
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Markus Linnala, 2002/04/16
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Gregory Berkolaiko, 2002/04/16
- Message not available
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Ross W. Wetmore, 2002/04/16
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Gregory Berkolaiko, 2002/04/15
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Raahul Kumar, 2002/04/16
- [Freeciv-Dev] Re: server/settlers.c cleanup 3, Ross W. Wetmore, 2002/04/16
[Freeciv-Dev] Re: server/settlers.c cleanup 2,
Gregory Berkolaiko <=
|
|