Obviating init.tcl
- From: "CMcC" <col.mccormack@xxxxxxxxx>
- Date: 16 Jul 2006 19:44:42 -0700
Whenever [interp create] creates a non-safe interpreter, it goes
through a quite costly initialization process potentially involving
regexps, file system access, $env access - all to source a file
init.tcl which is around 850 lines of tcl.
That's *every* time.
That's a lot of overhead which may be obviated in some cases.
I have two alternatives:
1) expose the C variable tclPreInitScript to tcl, enabling tcl scripts
to avoid the init.tcl process.
2) add a -minimal option to [interp create] which skips all the default
stuff.
I imagine this would make [interp create] a *lot* more lightweight.
Colin.
.
- Follow-Ups:
- Re: Obviating init.tcl
- From: CMcC
- Re: Obviating init.tcl
- Prev by Date: Re: Writing C extensions for Tcl
- Next by Date: how to use wish console in windows for interactive applications like telnet
- Previous by thread: Writing C extensions for Tcl
- Next by thread: Re: Obviating init.tcl
- Index(es):
Relevant Pages
|