Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6165) use memset instead of iteration
Home

[Freeciv-Dev] Re: (PR#6165) use memset instead of iteration

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6165) use memset instead of iteration
From: "rwetmore@xxxxxxxxxxxx" <rwetmore@xxxxxxxxxxxx>
Date: Wed, 17 Sep 2003 08:37:27 -0700
Reply-to: rt@xxxxxxxxxxxxxx

Jason Short wrote:
> Greg had some concern over the slowdown caused by using an iterator to 
> initialize the warmaps.
> 
> Of course, we can still use memset.  The only drawback is that the array 
> elements must all be byte-sized.

Not true ...
  ... you can initialize both special and arbitrary values if you think about
it a bit more, or lookup the standard coding techniques.

> jason

Cheers,
RossW
=====




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