Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: PATCH: remove map_adjust_[xy] invocations from server
Home

[Freeciv-Dev] Re: PATCH: remove map_adjust_[xy] invocations from server

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxx
Cc: rf13@xxxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: PATCH: remove map_adjust_[xy] invocations from server (PR#989)
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Mon, 22 Oct 2001 03:01:37 +0100

On Fri, 05 Oct 2001, vze2zq63@xxxxxxxxxxx wrote:

>> We may avoid the function call if is_normal_map_pos is a
>> macro. And with the RANGE_CHECK_0 from Ross there would also be no
>> double evaluation.
> 
> Well, whatever.  Should I add RANGE_CHECK_0 just for this patch?
> Shouldn't that be its own patch?  Would you rather I propose that
> patch first?  Should I make this into a macro?  What is the
> consensus on any of these issues?

Don't bother, unless you can show (with a profile) that doing so
actually improves performance.  When I tried this trick, it did not.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
CALIFORNIA is where people from IOWA or NEW YORK go to subscribe to
 CABLE TELEVISION!!


[Prev in Thread] Current Thread [Next in Thread]