From owner-freebsd-questions Fri Feb 1 0:53:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ns.moldnet.md (moldnet.md [195.138.124.18]) by hub.freebsd.org (Postfix) with ESMTP id 964FE37B404 for ; Fri, 1 Feb 2002 00:53:09 -0800 (PST) Received: from localhost (vg@localhost) by ns.moldnet.md (8.11.3/8.11.3) with ESMTP id g118qan45298 for ; Fri, 1 Feb 2002 10:52:36 +0200 (EET) (envelope-from vg@ns.moldnet.md) Date: Fri, 1 Feb 2002 10:52:36 +0200 (EET) From: Vladimir Girnetz To: Subject: Re: PERL way too slow on cat operation; me wonders what is going on In-Reply-To: <20020201052143.GD3088@raggedclown.net> Message-ID: <20020201104849.N44766-100000@ns.moldnet.md> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Fri, 1 Feb 2002, Cliff Sarginson wrote: > On Thu, Jan 31, 2002 at 11:09:50PM -0600, Steven A wrote: > > yea it is a typo > > > > oops > > > > this doesnt change anything, i still have the problem > > > > > > cat 80megfile.ps | perl cat.pl > output.ps > > > > vs > > > > cat 80megfile.ps | cat - > output.ps > > > > > > the first takes 8 minutes the second takes 3 seconds. > > > What is the file ? Postscript ? > try it with something else, or dd something into it. > Just a shot in the dark.. > I use some big perl scripts year ago. Perl 5.00 on FreeBSD is slowly that on Linux. The same script, under the same machine, same web server runs on Linux 3-5 time faster. So, I rewrite all scripts in C. Perl 5.6.1 works much better. Migrate to it. Regards, Vladimir > -- > Regards > Cliff > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message