Re: package command sloow
- From: Michael Schlenker <schlenk@xxxxxxxxxxxxxxxx>
- Date: Sun, 24 Jun 2007 19:51:33 +0200
rene schrieb:
Hi,Yes, if you can influence your Tcl installation. Don't put your packages
the following pkgIndex.tcl file takes some seconds for the first
"package require ..." command.
package ifneeded pkgA 0.1 "
if {[catch {package require pkgB}]} {source [file join $dir
pkgb.tcl]}
source [file join $dir pkga.tcl]
package provide pkgA 0.1"
A simple "catch {package require pkgB}" or "source [file join $dir
pkgb.tcl]" is fast. Is there a better way to go?
into /usr/lib/..., the standard package command scans all subdirs of
/usr/lib for pkgIndex.tcl files...
Tcl modules (for Tcl 8.5) reduce some of this time too.
Michael
.
- Follow-Ups:
- Re: package command sloow
- From: rene
- Re: package command sloow
- References:
- package command sloow
- From: rene
- package command sloow
- Prev by Date: Re: Expecting multiple pattern
- Next by Date: Re: sqlite help needed with my proc....
- Previous by thread: package command sloow
- Next by thread: Re: package command sloow
- Index(es):
Relevant Pages
|