Re: Top-level command invokations not compiled
- From: Alexandre Ferrieux <alexandre.ferrieux@xxxxxxxxx>
- Date: Wed, 27 Aug 2008 05:36:38 -0700 (PDT)
On Aug 27, 2:08 pm, Googie <n...@xxxxxxxx> wrote:
Hi,
There are many places where the following note is mentioned:
"Top-level invokations of commands are not byte-compiled, so be aware to put
most of them into procedure(s), so they run faster." -...or something like
that.
Well, why aren't they compiled? What is the reason to aviod compiling them?
Because since they are toplevel they will run just once, hence the
cost of compiling them will not be diluted over several runs of the
bytecode. See Miguel's recent summary on this:
http://groups.google.com/group/comp.lang.tcl/tree/browse_frm/thread/d82038ee84b6af25/1fa41def63fa5bfc?hl=en&rnum=31&q=ferrieux+junking&_done=%2Fgroup%2Fcomp.lang.tcl%2Fbrowse_frm%2Fthread%2Fd82038ee84b6af25%3Fhl%3Den%26tvc%3D1%26q%3Dferrieux%2Bjunking%26safe%3Dimages%26#doc_181bafa752a80104
-Alex
.
- Follow-Ups:
- Re: Top-level command invokations not compiled
- From: suchenwi
- Re: Top-level command invokations not compiled
- References:
- Top-level command invokations not compiled
- From: Googie
- Top-level command invokations not compiled
- Prev by Date: Re: question about reset counter/data
- Next by Date: Re: Top-level command invokations not compiled
- Previous by thread: Top-level command invokations not compiled
- Next by thread: Re: Top-level command invokations not compiled
- Index(es):
Relevant Pages
|