Re: binary tcl scripts? is it possible? is it faster ?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: binary tcl scripts? is it possible? is it faster ?

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Thu Jun 30 2005 - 15:39:16 CEST

Arjen Markus <arjen.markus@wldelft.nl> wrote:
>> 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
>
> Well, the statement says that there is no particular advantage
> in saving and loading the byte-compiled scripts - as far as
> speed is concerned.

The only other difference is whether a piece of delivered code
is obfuscated to be unreadable by most people, or if it isn't.

> It does not mean that using byte-compilation makes the scripts
> execute slower. Quite the contrary!

There is no compilation *beyond* bytecode. Once all is bytecode,
its equally fast.
Received on Thu Sep 29 14:24:03 2005