Re: binary tcl scripts? is it possible? is it faster ?
- From: "Usman Muzaffar" <usman@xxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 00:53:01 -0700
"Walid" <walid.benyoussef@xxxxxxxxx> wrote in message
news:1120116572.795940.240510@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi everybody,
> I want to know, if it's possible to compile a library of tcl scripts
> and to load into the interpreter later ?
I believe that is how modern versions of (>= 8.0) Tcl work.
Search for Tcl bytecode compilation, in particular,
http://aspn.activestate.com/ASPN/Tcl/TclConferencePapers2002/Tcl2002papers/kenny-bytecode/paperKBK.html
> Also I want to know, (if this is possible) if TCL interpreter runs this
> scripts faster as it does for text scripts ?
Reputable sources say this is in fact slower.
>From http://wiki.tcl.tk/820:
Believe it or not, Tcl's regular nature means that saving
byte codes isn't actually a win; reading byte codes using
the loader is actually slower than generating them afresh
from Tcl code.
-usman
.
- Follow-Ups:
- Re: binary tcl scripts? is it possible? is it faster ?
- From: Arjen Markus
- Re: binary tcl scripts? is it possible? is it faster ?
- References:
- Prev by Date: binary tcl scripts? is it possible? is it faster ?
- Next by Date: ANNOUNCE: The Simple Development Library version 1.0
- Previous by thread: binary tcl scripts? is it possible? is it faster ?
- Next by thread: Re: binary tcl scripts? is it possible? is it faster ?
- Index(es):
Relevant Pages
|