Skip to content
Tcl Source Code Artifact [a184888585]
Login

Artifact [a184888585]

Artifact a184888585667750f877bec771a01f017b1b2b3a:

Ticket change [a184888585] - Ticket [3519865fffffffff|3519865fff] <i>[package require] is too slow</i> status still Open with 4 other changes by twylite on 2012-04-25 20:30:33.
D 2012-04-25T20:30:33
J icomment @dkf:\sYou\ssaid\s"Let\sthe\scache\sbe\sa\sdictionary,\sindexed\sby\snormalized\sfilename\swith\sone\sentry\sper\sdir\sseen\sin\s$auto_path\s(or\swhatever\spath\sis\sused),\sstored\sin\sthe\suser's\shome\sdirectory"\n\nI\sthink\sa\suser-and-machine-specific\scache\sis\skey,\sso\sthis\ssounds\sto\sme\slike\sthe\sright\sdirection.\s\sUsing\sone\sfile\sper\sauto_path\sdir\sis\san\sinteresting\sapproach\s-\sI'll\slook\sat\sdoing\ssome\sperformance\sprofiling\son\sit.\n\nSome\scomments:\n\n-\s\s"Home\sdirectory"\sis\sfine\son\s*nix,\sbut\sneeds\sto\sbe\slocal\sappdata\spath\son\sWindows.\s\sIt\sis\scommon\son\sActive\sDirectory\sdomains\sfor\sthe\shome\sdirectory\sto\sbe\son\sa\snetwork\sshare\s(in\swhich\scase\saccessing\sthe\scache\swill\sbe\sslow,\sand\sthe\scache\swill\sbe\svisible\sto\sdifferent\smachines).\n\n-\sThe\scache\syou\ssuggest\swill\savoid\ssearching\sfor\sand\sloading\spkgIndex\sfiles,\sbut\swill\snot\saddress\sthe\s[glob]s\sdone\swithin\spkgIndex\sfiles\sor\stcl::tm::unknownHandler,\snor\sthe\s[file\sexists]\schecks\sfor\stclIndex.\n\nI\shave\sbeen\slooking\sinto\scaching\s[package\sifneeded]\scalls,\sand\soverriding\s[package\sunknown]\sto\sbe\sa\snop\s(or\sempty\sthe\sauto_path\sand\smodule\spaths)\sif\sthe\scache\sis\sup\sto\sdate.\s\sIt\sis\san\sapproach\sthat\swill\savoid\sall\s[glob]\sand\s[file\sexists]\scalls,\sas\swell\sas\snot\sloading\spkgIndex\sfiles.\s\sIt\swould\sbe\strivial\sto\sextend\sthis\sto\scover\stclIndex\sfiles\sas\swell.\s\sUsing\syour\sauto_path\sand\s[file\smtime]\sideas\sone\scould\simprove\sthe\sefficiency\swith\swhich\ssuch\sa\scache\scould\sbe\srebuilt.\n\nDo\syou\ssee\sany\sproblems\swith\sthis\sapproach?\n\n
J login twylite
J mimetype text/plain
J username twylite
K 3519865fffffffffffffffffffffffffffffffff
U twylite
Z 75a7b4ab04bd91e0f410cd1d4f0438ba