Re: Tcl faster than Perl/Python...but only with tricks...




Uwe Klein a écrit :

Just for the fun of it:
I changed the [gets $fd line] to [set line [read $fd 65536]].
the difference is negligible.

Ha ! This one seems to point to my suggestion about some
post-processing done in the channel code (encoding or crlf). Can you
try with -translation binary, and also play around with various
-encoding values ?

Also, another interesting comparison point would be stdio's
fread()/fgets(). Not sure 'grep' uses it though (does anybody know
whether Perl and Python do ?). You may need to compile a 3-line C
program to test...

-Alex

.



Relevant Pages

  • Re: A naturist event for the Fringe
    ... as this _appears_ to be a suggestion that CCBN spend ... access rights & from a commercial sponsor + ticket sales. ... Such a project, as well as being fun, would provide a publicity bridge to ...
    (uk.rec.naturist)
  • Re: Word needs tab and autoformatting resolved. Pain in @$$
    ... This is an ACCESS newsgroup, ... Have fun with whatever product you guys migrate to. ... We are leaving Microsoft Office as our Office management system. ... > Please take my suggestion seriously. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: B&B - Sally Spectra?
    ... suggestion that Reese Witherspoon play Stephanie Plum...Reese, ... personality, big hair...earthy, a bit trashy, tough and full of fun. ...
    (rec.arts.tv.soaps.cbs)
  • Re: #;
    ... Kent M Pitman wrote: ... That's quite fun, actually. ... cute, at the same time. ... was more to be humorous than to make a serious suggestion. ...
    (comp.lang.lisp)
  • Re: American and British (English)
    ... [teeniest little suggestion that someone had read too fast] ... this article you cite. ... expertise and fun if you read this article ...
    (alt.usage.english)