Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d866d44bf89db083b28121ff692079c64dd52ad2
Ticket: 3519865fffffffffffffffffffffffffffffffff
[package require] is too slow
User & Date: dkf on 2012-05-02 20:44:02
Changes

  1. icomment:
    Because you can only get the version of the package by searching for the index file and sourcing it. That's what we're trying to avoid. :-)
    
    If we assume that packages themselves don't change and that they are installed in directories of their own (NB: don't know if that's a safe assumption!) then any time a package is added or removed, the parent directory will be updated (add/remove an entry for the subdir that actually holds the package), which updates the mtime of that parent dir.  Thus, if the mtime is unchanged, no packages have been added or removed and the cache is current; if the mtime changes, we rebuild because it might have been due to a package being added or removed.
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"