Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cfb68b70c4a74543aff653d2c3c8f6bb4be2608c2a9e0427c866b94170a27882
Ticket: 93eb73784ae4c3b2285133a98df8163144eba291
zipfs interaction with tcl_findLibrary causes slow loading
User & Date: juliannoble2 on 2023-09-05 20:21:54
Changes

  1. icomment:
    Regarding poor performance of 'file exists' for nonexistant //zipfs:/ paths:
    
    This is not a problem within the area of the mount e.g //zipfs:/lib/tk 
    
    
        % time {file exists //zipfs:/lib/tk/tk_library/nonexistant}
        4 microseconds per iteration
        % time {file exists //zipfs:/lib/NOWHERE/tk_library/nonexistant}
        6865814 microseconds per iteration
        % time {file exists //blah:/etc}
        6871529 microseconds per iteration
    
    It is only a problem if the tested path falls entirely outside a mount.
    
    (which happens during the tcl_findLibrary testing of dirs which first looks for //zipfs:/app/tk_library)
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"