Re: Is there already a "sourcecode to optimized converter" for tcl?
- From: Jeff Hobbs <jeffh@xxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 15:25:43 -0700
Michael Reichenbach wrote:
I wanted to optimize my scripts and already tested already
tclpro/activestate tcl compiler but got really disappointed, the
improvement was more then minimal. The bytecode hides the source but
this is not my point, I wanted to speed up things.
As Arcis already noted, the Tcl Dev Kit Compiler is a precompiler for obfusacation purposes - it is not intended for to improve performance, and it doesn't advertise itself that way (although I understand that "Compiler" means different things to different people).
I can imagine that this (=good readable for me)...
is slower then this (="optimized")
proc testproc {n args} {puts $n;puts $args};proc nextproc {n args} {puts
$n;puts $args}
That is not correct. One byte-compiled, the whitespace is irrelevant. Arcis already provided several pointers, but one page to look at is http://wiki.tcl.tk/1611. It's a benchmark page, but you'll notice that some of the benchmarks are improved through alternate coding methods for the same purpose.
Jeff
.
- References:
- Is there already a "sourcecode to optimized converter" for tcl?
- From: Michael Reichenbach
- Is there already a "sourcecode to optimized converter" for tcl?
- Prev by Date: Re: BWidget/snit interaction on Windows 2000
- Next by Date: Re: Launching Tkcon with a main script and another as arguments
- Previous by thread: Re: Is there already a "sourcecode to optimized converter" for tcl?
- Index(es):
Relevant Pages
|