Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7be339f50aada0cd6120d8a5adede8758fc19ab97bf69199520fdc4d84c0a007
Ticket: 93eb73784ae4c3b2285133a98df8163144eba291
zipfs interaction with tcl_findLibrary causes slow loading
User & Date: juliannoble2 on 2023-09-06 19:04:07
Changes

  1. icomment:
    Tk slow loading was fixed with another hack - this one in auto.tcl's tcl_findLibrary
    
    Again - I only put this here as a proof of concept for narrowing down the real issue.
    
    <code>
    -	if {[interp issafe] || [file exists $file]} {
    +    if {[string match "//zipfs:/*" $i]} {
    +        set file_relative [string range $file [string length "//zipfs:"] end]
    +        set test_exists_file [list zipfs exists $file_relative]
    +    } else {
    +        set test_exists_file [list file exists $file]
    +    }
    +
    +
    +	if {[interp issafe] || [{*}$test_exists_file]} {
    </code>
    
    
    
    It appears that other paths such as "zipfs:/"  have been used for windows in some places (e.g in practcl.tcl)
    
    I'm not a fan of unnecessary platform differences - so I'm hoping the same ZIPFS_VOLUME can be used on windows as unix-like platforms.
    
    
    I'm assuming there is some reason that a URI-like prefix like "zipfs://" isn't workable cross platform - but I haven't found that discussion.
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"