Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ 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 page
Pages: 1
2
3
| Posted by
| David Haley
USA (3,881 posts) 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 | | Top |
|
| Posted by
| Conner
USA (381 posts) 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 | | 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.
109,381 views.
This is page 3, subject is 3 pages long:
1
2
3
It is now over 60 days since the last post. This thread is closed.
Refresh page
top