<i>zipfs interaction with tcl_findLibrary causes slow loading</i> status still Open with 3 other changes
by
.
D 2023-09-07T19:21:46.008
J icomment On\sreview\s-\swhile\stimings\sare\sslightly\sbetter\sfor\szipfs\smounts\s-\sI\sthink\sthe\sbulk\sof\sthe\sperformance\sdifference\sI'm\sseeing\sis\sfrom\sthe\sfixes\savoiding\sother\sunneccessary\sfilesystem\scalls/mount\sattempts\setc.\r\n\r\nThe\spatch\sbelow\simproves\sthings\sslightly\sin\sthat\sit\sallows\sthe\szipfs\sto\sbe\sused\seven\sif\s\slib/tcl8.7\sexists\s(but\sstill\sallows\sTCL_LIBRARY\sto\soverride)\r\n\r\nUnfortunately\sI\sdon't\sknow\sthe\s\ssource\sof\s$tclDefaultLibrary\sso\sI\sdon't\sknow\sthe\simplications/possible\sside\seffects\sof\sthis\sreordering.\r\n\r\n\r\n\r\nIndex:\sgeneric/tclInterp.c\r\n==================================================================\r\n---\sgeneric/tclInterp.c\r\n+++\sgeneric/tclInterp.c\r\n@@\s-400,16\s+400,16\s@@\r\n\s"\s\s\s\s\s\s\s\s\s\slappend\sscripts\s{\\n"\r\n\s"if\s{[regexp\s^tcl(.*)$\s[file\stail\s$env(TCL_LIBRARY)]\s->\stail]\s==\s0}\scontinue\\n"\r\n\s"if\s{$tail\seq\s[info\stclversion]}\scontinue\\n"\r\n\s"file\sjoin\s[file\sdirname\s$env(TCL_LIBRARY)]\stcl[info\stclversion]}\\n"\r\n\s"\s\s\s\s\s\s}\\n"\r\n+"\s\s\s\s\s\slappend\sscripts\s{::tcl::zipfs::tcl_library_init}\\n"\r\n\s"\s\s\s\s\s\sif\s{[info\sexists\stclDefaultLibrary]}\s{\\n"\r\n\s"\s\s\s\s\s\s\s\s\s\slappend\sscripts\s{set\stclDefaultLibrary}\\n"\r\n\s"\s\s\s\s\s\s}\selse\s{\\n"\r\n\s"\s\s\s\s\s\s\s\s\s\slappend\sscripts\s{::tcl::pkgconfig\sget\sscriptdir,runtime}\\n"\r\n\s"\s\s\s\s\s\s}\\n"\r\n-"\s\s\s\s\s\slappend\sscripts\s{::tcl::zipfs::tcl_library_init}\\n"\r\n\s"\s\s\s\s\s\slappend\sscripts\s{\\n"\r\n\s"set\sparentDir\s[file\sdirname\s[file\sdirname\s[info\snameofexecutable]]]\\n"\r\n\s"set\sgrandParentDir\s[file\sdirname\s$parentDir]\\n"\r\n\s"file\sjoin\s$parentDir\slib\stcl[info\stclversion]}\s\\\\\\n"\r\n\s"\s\s\s\s\s\s{file\sjoin\s$grandParentDir\slib\stcl[info\stclversion]}\s\\\\\\n"
J login juliannoble2
J mimetype text/plain
K 93eb73784ae4c3b2285133a98df8163144eba291
U juliannoble2
Z 79e81fecb873ee32809f4ace373248e5