Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d011c70d6d4e24f1a45aa801655513605e315b59
Ticket: 1081779fffffffffffffffffffffffffffffffff
speed up proc calls, improve resolver logic
User & Date: msofer on 2004-12-09 01:00:24
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When resolvers are defined, the function
    TclInitCompiledLocals marks every variable that has
    been found by them with VAR_RESOLVED. This flag avoids
    a new lookup until one of the relevant the resolver
    epochs changes.
    
    Variables that the resolvers did *not* find (ie,
    locals) remain unmarked. This means that the resolvers
    will look them up (and fail) at every proc invocation.
    If the resolvers do expensive lookups, this may slow
    down every proc call considerably.
    
    The attached patch marks every variable with
    VAR_RESOLVED, wether it was found or not - i.e.,
    VAR_RESOLVED now means VAR_PROCESSED_BY_RESOLVERS.
    
    The patch should be tested with Itcl and Xotcl (the
    known resolver users) to insure that my analysis is
    coherent with their usage.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "improve proc call when using resolvers"
  11. type changed to: "Patch"