Overview
| Artifact ID: | 93f6fd4bf79547f685ef6b8508a90bd4a9c2a76a74c1d6073512a94a6e61b2be |
|---|---|
| Ticket: | 93eb73784ae4c3b2285133a98df8163144eba291
zipfs interaction with tcl_findLibrary causes slow loading |
| User & Date: | juliannoble2 on 2023-09-07 19:21:46 |
Changes
- icomment:
On review - while timings are slightly better for zipfs mounts - I think the bulk of the performance difference I'm seeing is from the fixes avoiding other unneccessary filesystem calls/mount attempts etc. The patch below improves things slightly in that it allows the zipfs to be used even if lib/tcl8.7 exists (but still allows TCL_LIBRARY to override) Unfortunately I don't know the source of $tclDefaultLibrary so I don't know the implications/possible side effects of this reordering. Index: generic/tclInterp.c ================================================================== --- generic/tclInterp.c +++ generic/tclInterp.c @@ -400,16 +400,16 @@ " lappend scripts {\n" "if {[regexp ^tcl(.*)$ [file tail $env(TCL_LIBRARY)] -> tail] == 0} continue\n" "if {$tail eq [info tclversion]} continue\n" "file join [file dirname $env(TCL_LIBRARY)] tcl[info tclversion]}\n" " }\n" +" lappend scripts {::tcl::zipfs::tcl_library_init}\n" " if {[info exists tclDefaultLibrary]} {\n" " lappend scripts {set tclDefaultLibrary}\n" " } else {\n" " lappend scripts {::tcl::pkgconfig get scriptdir,runtime}\n" " }\n" -" lappend scripts {::tcl::zipfs::tcl_library_init}\n" " lappend scripts {\n" "set parentDir [file dirname [file dirname [info nameofexecutable]]]\n" "set grandParentDir [file dirname $parentDir]\n" "file join $parentDir lib tcl[info tclversion]} \\\n" " {file join $grandParentDir lib tcl[info tclversion]} \\\n" - login: "juliannoble2"
- mimetype: "text/plain"