From owner-freebsd-questions Fri Feb 1 13:12:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from laime.cs.uchicago.edu (laime.cs.uchicago.edu [128.135.11.244]) by hub.freebsd.org (Postfix) with ESMTP id 3E3B637B400 for ; Fri, 1 Feb 2002 13:12:53 -0800 (PST) Received: from champion.cs.uchicago.edu (postfix@champion.cs.uchicago.edu [128.135.24.246]) by laime.cs.uchicago.edu (8.10.2/8.9.3) with ESMTP id g11LCqs07460; Fri, 1 Feb 2002 15:12:52 -0600 (CST) Received: by champion.cs.uchicago.edu (Postfix, from userid 10561) id 0F4335AA04; Fri, 1 Feb 2002 15:12:52 -0600 (CST) Date: Fri, 1 Feb 2002 15:12:52 -0600 From: Steven A To: Ceri Cc: freebsd-questions@freebsd.org Subject: Re: PERL way too slow on cat operation; me wonders what is going on Message-ID: <20020201151251.A31607@champion.cs.uchicago.edu> References: <20020131212634.A13452@abyss.cs.uchicago.edu> <20020201050637.GA4068@moo.holy.cow> <20020131230950.B15426@abyss.cs.uchicago.edu> <20020201133218.B440@cartman.private.techsupport.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020201133218.B440@cartman.private.techsupport.co.uk>; from ceri@techsupport.co.uk on Fri, Feb 01, 2002 at 01:32:18PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG you know, your code worked fine but then i tried running the script i had a problem with and the slowdown went away. how screwed up is that. It really was a problem for a few weeks though, as I was using a similar script with lprng and the duplex queues which were using a perl filter kept stalling. anyway, from now on i am going to use perl only when necessary. otherwise: sh. yours, steve On Fri, Feb 01, 2002 at 01:32:18PM +0000, Ceri wrote: > On Thu, Jan 31, 2002 at 11:09:50PM -0600, Steven A said: > > yea it is a typo > > > > oops > > > > this doesnt change anything, i still have the problem > > > > > > cat 80megfile.ps | perl cat.pl > output.ps > > What about > > cat 80megfile.ps | perl -pe '' > output.ps > > ? > > That's gotta be the easiest round of perl golf I ever played. > > Ceri To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message