<i>[package require] is too slow</i> status still Open with 4 other changes
by
.
D 2012-04-25T17:22:41
J icomment Effectively\ssebres\sis\stalking\sabout\scaching.\s\sThis\scan\sbe\sdone,\sand\sI've\sdone\ssome\sinvestigation,\sbut\sit\scan\sbe\stricky\sto\sright\sfor\sall\senvironments.\n\nBackground:\sI\suse\sTcl\son\sa\svariety\sof\ssystems\sincluding\san\sAtom-based\snotebook\s(Windows\s7\s32-bit)\swith\sa\s4500rpm\sHDD.\s\stclsh\sloads\squickly\son\sthe\snotebook,\sbut\swish86t.exe\stakes\supwards\sof\s25\sseconds\sto\sdisplay\sa\sconsole!\s\sI\shave\sa\scompany\sproject\sthat\suses\sWub\sand\sa\sbunch\sof\sour\sown\spackages,\sand\scan\stake\sover\s110\sseconds\sto\sload.\n\nI\shave\sfound\sa\snumber\sof\sperformance\skillers:\s(1)\swe're\susing\sa\strofs\sVFS;\strofs\sitself\sisn't\sslow\sbut\seach\snew\ssource/open\scauses\sa\sCreateFile()\swhich\sgets\sthe\santi-virus\sinvolved.\s\s(2)\smissing\spackages\scause\sa\sre-[glob]\sof\sall\slibrary\spaths\s(profile\s[package\srequire\sip]\sfrom\stcllib\son\sa\ssystem\sthat\sdoesn't\shave\smd5\sor\scritcl\sif\syou\swant\sto\ssee\sthe\seffect).\s\s(3)\s[glob]\sis\sslow\son\sslow\sdrives\s(including\sUSB\sdisks,\snetwork\sdrives,\setc).\n\nA\scaching\ssolution\scould\smonitor\sand\scache\scalls\sto\s[package\sifneeded],\sand\sthe\s[glob]\scalls\sdone\sto\slocate\sTcl\smodules.\s\sThis\swould\savoid\sthe\sneed\sto\suse\s[glob]\sand\s[file\sexists]\sin\smost\scases,\sand\simprove\sperformance.\n\nThe\scatch\sis\sthat\sthe\scache\sis\sspecific\sto\sboth\sthe\sTcl\sinstallation,\sand\sthe\senvironment\sin\swhich\sit\sis\sinvoked.\s\sTwo\sdifferent\susers\son\sthe\ssame\sPC,\sor\stwo\sdifferent\susers\srunning\sa\snetwork\sinstall\sof\sTcl,\srequire\sdifferent\scaches.\n\nThe\sbest\sapproach\sI\sknow\sof\sat\sthe\smoment\sis\sto\shave\sa\sVERSION\sfile\sin\sthe\sinstall\s(which\s_must_\sbe\schanged\sif\sthe\sinstall\schanges),\sand\sa\scache\sfile\sstored\sin\sthe\susers\slocal\sprofile\son\sany\sgiven\smachine.\s\sIf\sthe\slocal\scache\sis\smissing\sor\sdisagrees\swith\sthe\sVERSION\sfile,\sthen\sthe\scache\smust\sbe\sregenerated.\n\nI\s_think_\sthis\shandles\sthe\sproblem\sfor\sWindows.\s\sI\sdon't\sknow\sif\sit\scan\sadapted\sto\simprove\sthe\sperformance\sof\sportable\sinstalls.\s\sAnd\sI\sdon't\sknow\sthe\simpact\son\snon-Windows\ssystems.\n\n
J login twylite
J mimetype text/plain
J username twylite
K 3519865fffffffffffffffffffffffffffffffff
U twylite
Z f46f7ae71051a8bbcccfd6233b8a69b3