[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  Case sensitive skill/spell lookups

Case sensitive skill/spell lookups

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1  2  3 

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #30 on Sat 10 Feb 2007 09:49 PM (UTC)
Message
The caching is just to resort a copy the skill table. So there are two copies at all times: (a) the main one, sorted by name, in which the binary searches are done. (b) the type-sorted one, only used for the practice command at present.

Sorting the skill table does not take much more time than what is needed to run the practice command in the first place. But to maintain the behavior of practice (sorted by type) without having a type-sorted table would be somewhat expensive.

Besides, in order for the new binary search to work, the skill table has to be resorted.


But... hrm. That could be problematic, because if a skill is referenced by number, and the table is resorted, that number could now point to a different thing. That must be why they had that extra segment at the top of the skill list that would be searched linearly in case the skill wasn't found in the rest. I will need to look into this because it could be potentially disastrous. Hrm. Drat.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Conner   USA  (381 posts)  [Biography] bio
Date Reply #31 on Sun 11 Feb 2007 12:59 AM (UTC)
Message
Sorry about the monkey wrench, but better to have all the bases covered. ;)

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


73,720 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]