Re: Obviating init.tcl
- From: "CMcC" <col.mccormack@xxxxxxxxx>
- Date: 17 Jul 2006 06:39:25 -0700
I imagine this would make [interp create] a *lot* more lightweight.
I've done some quick tests, using a critcl interface to prevent the
init search and evaluation from occurring. The results are
significantly faster [interp create].
Here's the data:
Normal interp create: 11162.625 microseconds per iteration
Fast interp create: 3780.4 microseconds per iteration
Reverted interp create :11232.925 microseconds per iteration
Here's the code:
lappend auto_path lib/preinit/
package require preinit
puts "Normal interp create: [time {interp create} 40]"
preinitscript {
proc tclInit {} {}
}
puts "Fast interp create: [time {interp create} 40]"
preinitscript {}
puts "Reverted interp create :[time {interp create} 40]"
.
- References:
- Obviating init.tcl
- From: CMcC
- Obviating init.tcl
- Prev by Date: Re: New list commands ... What do you think ?
- Next by Date: Re: Announce: tkpath 0.2
- Previous by thread: Obviating init.tcl
- Next by thread: how to use wish console in windows for interactive applications like telnet
- Index(es):
Relevant Pages
|