Re: Java v Perl dashing golf

[email protected] (Yanick)
Newsgroups perl.golf
Message-ID <[email protected]>
On Wed, Sep 18, 2002 at 11:14:33AM +1000, [email protected] wrote:
> En op 18 september 2002 sprak `/anick:
> > /^192\.(?:9|18|29)\./||/\.(?:gif|GIF|jpg|JPG|css|CSS) HTTP/ or print
> >
> >	is still a wee bit faster.
> 
> BTW, on my (perhaps unrepresentative) 17 MB test file on Windows,
> `/anick's program took 4.75 secs versus 140 seconds for the
> original 15-line Perl program.

	On my (likely to be as unrepresentative) 100 MB test file on
Linux, I get 5 secs versus 75 secs, still a non-negligible 
speedup.

	The article was saying Perl was twice as slow? Seems
it's 7.5 times as fast while needing a hundreth of the lines of
code. 

	Hmm... Make me want to rush back at my Java books, this
sure doesn't...

Joy,
`/anick

-- 
"look me in the eye and if you see familiarity 
 then celebrate the contradiction 
 help me when I fall to walk unafraid"  -Walk Unafraid, R.E.M.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.