Date: Thu, 31 Jan 2002 21:39:21 -0600 (CST) From: Nick Rogness <nick@rogness.net> To: Steven A <salyari@cs.uchicago.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PERL way too slow on cat operation; me wonders what is going on Message-ID: <Pine.BSF.4.21.0201312137380.46382-100000@cody.jharris.com> In-Reply-To: <20020131212634.A13452@abyss.cs.uchicago.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Jan 2002, Steven A wrote: > hi, > > first of all, my uname -a: FreeBSD oberon.cs.uchicago.edu 4.4-RELEASE > FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 > murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 > > > now: > > the following perl script takes 8 minutes to execute on both of my > freebsd systems (two AMD K6-2 300s): > > cat 80megfile.ps > perl cat.pl > output.ps > > cat.pl: > while($_ = <STDIN>) { > print $_; > } try cat.pl as: $|=1; while (<STDIN>) { print $_; } Nick Rogness <nick@rogness.net> - Don't mind me...I'm just sniffing your packets To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0201312137380.46382-100000>