Skip to Content.
Sympa Menu

sm-sorcery-bugs - [Sm-Sorcery-Bugs] [Bug 1998] New: Slow Sorcery...

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [Sm-Sorcery-Bugs] [Bug 1998] New: Slow Sorcery...
  • Date: Wed, 18 Dec 2002 17:02:19 -0500

http://bugs.sourcemage.org/show_bug.cgi?id=1998

Summary: Slow Sorcery...
Product: Sorcery
Version: Devel
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Summon
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: eric_s AT gmx.de


I patched two functions in /var/lib/sorcery/modules/libcodex
to be able to index the grimoire ( wasn't as hard as I thought it would be ;)

If $INDEX_CODEX is set to "on" they will generate a index database like this:

find ${GRIMOIRE_DIR[0]}/ -type d -exec echo '{}': >>
${GRIMOIRE_DIR[0]}/INDEX \;

and use it later to search for spellnames / spelldirectories faster.
This reduced the time for a non-existend spell to 1/10, from 30 to 3 seconds.
All that is left is to include this setting $INDEX_CODEX into the sorcery
script,
so people are able to use it.
Anyway, here are the 2 patched functions...



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [Sm-Sorcery-Bugs] [Bug 1998] New: Slow Sorcery..., bugzilla-daemon, 12/18/2002

Archive powered by MHonArc 2.6.24.

Top of Page