|
2015-10-20
| ||
| 10:27 | • Ticket [b45b27abf6] pkgIndex.tcl search routine sources a pkgIndex multiple time... artifact: 92f6de55f6 user: jan.nijtmans | |
|
2015-10-19
| ||
| 14:50 | • Ticket [b45b27abf6]: 5 changes artifact: d57fa825d2 user: pooryorick | |
| 13:54 | • Closed ticket [b45b27abf6]. artifact: 1d3e6c2795 user: dgp | |
|
2015-10-16
| ||
| 04:56 | • New ticket [b45b27abf6]. artifact: fb23b4880d user: pooryorick | |
pkgIndex.tcl search routine sources a pkgIndex multiple times via links
Closed / Rejectedb45b27abf63da41eac1125128d1f2fd1ce7fca86Created 11 years agoUpdated 11 years ago
Descriptionwiki2015-10-16 04:56:55
The routine in
library/package.tcl/tclPkgUnknown does not normalize search directories, and so sources a given pkgIndex.tcl file as many times as it is aliased via links. It would be straightforward to change the behaviour so that each pkgIndex.tcl file was sourced only once.
dgpplain2015-10-19 13:54:36
Not a bug. Multiple sourcing of pkgIndex.tcl files is normal operations.
pooryorickplain2015-10-19 14:50:51
Normal and by design, yes, but not in the case where the process is just inadvertently sourcing the same file because of symlinks. In my setup, a package like tclws2.3.7 is symlinked to tclws2.3, tclws2, and tclws, so each time a scan is done, the work is quadrupled.
jan.nijtmansplain2015-10-20 10:27:40
I think the proper solution is to remove the symlinks in your environment. They don't server any other purpose than causing Tcl to do too much work. So, I agree with dgp.
Log in (anonymous is fine) to add a comment.