Skip to content
Tcl Source Code Artifact [606bc9f713]
Login

Artifact [606bc9f713]

Artifact 606bc9f71345ff83067939b0998874d7393e7753:

Ticket change [606bc9f713] - Ticket [3519865fffffffff|3519865fff] <i>[package require] is too slow</i> status still Open with 4 other changes by twylite on 2012-04-25 18:46:13.
D 2012-04-25T18:46:13
J icomment It\sreally\s_is_\sa\scaching\sproblem:\n\n1.\s\sEach\spkgIndex.tcl\sis\sa\sproper\sTcl\sscript\sand\scan\stake\sactions\sthat\sare\sspecific\sto\sthe\sabsolute\sor\srelative\slocation\sof\sthe\sscript,\sor\sto\sthe\senvironment.\s\sIt\sis\snot\spossible\s-\swithout\simposing\sunenforceable\srules\son\swhat\spkgIndex.tcl\scan\sdo\s-\sto\sautomate\sthe\scombination\sof\smultiple\spkgIndex.tcl\sfiles.\s\sA\ssimple\s[file\sdirname\s[info\sscript]]\s-\scommon\sin\spkgIndex\sfiles\s-\swon't\swork\sin\sa\smerged\sscript\swithout\san\semulation\slayer\sto\sDo\sThe\sRight\sThing.\n\n2.\sVarious\sscripts\smodify\sauto_path,\sor\suse\scatch\s{\spackage\srequire\ssomePkg\s}\sto\sattempt\sto\sload\spackage\sthat\smay\sor\smay\snot\sbe\spresent.\s\sEither\swill\scause\sa\srescan\sfor\spkgIndex\sfiles.\n\n3.\sNothing\sis\sstopping\sa\spkgIndex\sfrom\susing\s[glob]\sto\sdiscover\sfiles\sfor\swhich\sto\sissue\s[package\sifneeded]\scommands.\s\sI've\sbeen\susing\sthis\ssort\sof\s"magic\sindexing"\sto\sdo\ssomething\sakin\sto\sTcl\sModules,\slong\sbefore\sthere\swere\sTcl\sModules.\n\n4.\sMerging\spkgIndex\sfiles\sdoesn't\savoid\sthe\s[glob]\scalls\sin\s::tcl::tm::UnknownHandler.\n\nCombining\smultiple\spkgIndex\sfiles\sinto\sone\scan\swork\sin\ssimple\scases,\sand\scan\sresult\sin\sa\slimited\sperformance\simprovement\sin\ssimple\scases.\s\sBut\sit\sis\snot\sa\sgeneral\ssolution,\sand\sit\sdoesn't\swork\sfor\severy\spackage\sout\sthere.\n\nIt\sis\scertainly\spossible\sto\sbuild\sa\sbetter\smakeIndex\swith\sa\sdifferent\spackaging\smechanism,\sbut\sthat\sdoesn't\ssolve\sthe\sproblem\sfor\sdevelopers\swho\sare\sexperiencing\sslow\sstartup\sperformance\swith\sTcl\s_right\snow_.\n\n
J login twylite
J mimetype text/plain
J username twylite
K 3519865fffffffffffffffffffffffffffffffff
U twylite
Z cb76f5523b35c902b584bac57d0afedc