Re: spell sorting

From: Zeavon (
Date: 10/27/00

On Fri, 27 Oct 2000, The Merciless Lord of Everything wrote:

> Instead of using Qsort or another "on-the-fly" sorting routing, make a
> routing that sorts the spells at bootup time instead (Of course qsort can
> be used for this :). Drop it into an Array and then when players request
> it, you don't waste valuable CPU time sorting. It will of course slow your
> bootup time with an unknown factor, but I gather we're at miliseconds :)

I've done the same. It only makes sense to sort it once and then store
those results in an array so that you don't have to sort it each time
someone types a command that will list all skills/spells.

Zeavon Calatin, MageMaster of the Realms
Spear of Insanity    telnet://

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 04/10/01 PDT