Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 9391] summon seems to take forever

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 9391] summon seems to take forever
  • Date: Tue, 2 Aug 2005 14:50:14 -0700 (PDT)

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


acedit AT armory.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|Untargetted future release |1.13.x




------- Additional Comments From acedit AT armory.com 2005-08-02 14:50 -------
the main slowdown is list_add being slow i think. Other parts are slow due to
excessive forking. In particular url_expand_urls, url_get_valid_urls, and the
bucketization. In that order. We should avoid repeated calls to
url_get_prefix,
maybe find a way to cache that, and/or use upvars in place of forks.

This reminds me that we probably should set some sort of threshold on the
maximum number of mirrors expanded. After the urls are sorted the list should
be
truncated; that would avoid having 400 some mirrors to slog through (both in
internal processing and before sorcery declares the file cant be found). Not
that fixing up these slower bits isn't important. Also, Im not certain all
those
kernel mirrors are valid, so we'll have to look through them and cull
out-dated
ones.

In summary:
fix expanding code to drop "Custom"
fix code to not use list_add, use better placed greps instead
fix url_get_valid_urls/url_default_is_valid to run faster
fix bucketizer to run slightly faster
cache url to prefix
limit max number of urls expanded/sorted

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page