Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!news From: flee@shire.cs.psu.edu (Felix Lee) Newsgroups: comp.lang.perl Subject: Re: speed: V2 verses V3 Message-ID: <1989Dec19.013655.431@psuvax1.cs.psu.edu> Date: 19 Dec 89 01:36:55 GMT References: <1808@uvaarpa.virginia.edu> <6609@jpl-devvax.JPL.NASA.GOV> <4047@convex.UUCP> <1989Dec18.032836.16434@psuvax1.cs.psu.edu> <4055@convex.UUCP> <1989Dec18.112735.4443@psuvax1.cs.psu.edu> <6628@jpl-devvax.JPL.NASA.GOV> Sender: news@psuvax1.cs.psu.edu (Usenet) Organization: Penn State University Computer Science Lines: 17 Larry Wall wrote: > This particular script is exercising almost none of the constructs > that were sped up in perl 3, and several of the constructs that were > slowed down. Yes, I suspected as much, especially the associative array references. I offered that script as an example of a typically expensive text application. Most perl-as-a-report-generator applications aren't going to be nearly as expensive, but will do much the same thing. Assocs are more useful than normal arrays for report generation; they're natural for tabulating data. (That's why the reverse-cat in awk is so slow: awk has assocs, not regular arrays.) But anyway, the enhancements in version 3 are great for all those writing serious applications (like newsreaders:-) in Perl. -- Felix Lee flee@shire.cs.psu.edu *!psuvax1!flee