Overview
| Artifact ID: | 1b8c2f94b96089f207272d2f6532705296c1b8c9 |
|---|---|
| Ticket: | 1159942fffffffffffffffffffffffffffffffff
TIP229: namespace path |
| User & Date: | msofer on 2005-03-10 01:54:02 |
Changes
- icomment:
Logged In: YES user_id=148712 I'm worried about the speed implications, as I do not immediately see how the core can cache already resolved command names and insure that the cached values are correct. The problem is (un)shadowing of commands at different levels in the search path. The test namespace-51.5 (added in the patch as knownbug) illustrates the point. One possibility is to disable caching selectively: commands called from a namespace that has a non-empty search path are only cached if they reside in that namespace. Later on, we may design a mechanism to cache all commands and detect shadowing/unshadowing effects. I am not sure if this can be done reasonably in presence of dynamic paths. The core currently does this, but with fixed search paths of length 2 (as given by Tcl's resolution rules).
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"