From owner-freebsd-hackers Thu Apr 26 11:13: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from et-gw.etinc.com (et-gw.etinc.com [207.252.1.2]) by hub.freebsd.org (Postfix) with ESMTP id B795037B422 for ; Thu, 26 Apr 2001 11:13:02 -0700 (PDT) (envelope-from dennis@etinc.com) Received: from dbsys.etinc.com (dbsys.etinc.com [207.252.1.18]) by et-gw.etinc.com (8.9.3/8.9.3) with ESMTP id OAA62698; Thu, 26 Apr 2001 14:13:34 GMT (envelope-from dennis@etinc.com) Message-Id: <5.0.2.1.0.20010426133342.032c48f0@mail.etinc.com> X-Sender: dennis@mail.etinc.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 26 Apr 2001 13:36:02 -0400 To: Anton Berezin From: Dennis Subject: Re: gcc -O bug Cc: hackers@FreeBSD.ORG In-Reply-To: <20010426151126.E17373@heechee.tobez.org> References: <20010426144848.B17373@heechee.tobez.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 09:11 AM 04/26/2001, you wrote: >On Thu, Apr 26, 2001 at 11:00:15PM +1000, Greg Black wrote: > > Anton Berezin wrote: > > > > | Could you provide the Perl script as well? > > > > That would be pointless. The issue is with the C ... > >I know that. > > > | I am quite sure it can be > > | made to run faster. In fact, it is almost always possible in Perl to > > | closely match the perfomance of a C program for this kind of > > | application. > > > > Nonsense (unless the C program is written by an idiot). > >Nope. The real nonsense is what you say. Perl core is written in a >highly optimized C using very polished algorithms. As long as the Perl >script is written in such a way as to minimize the number of OPCODEs >executed and maximize the time spent inside the OPCODE executor engine, >it is not exactly trivial to beat it in C, unless you are willing to >spent a considerable time polishing your code (which is not worth it for >your typical log analyzer). Don't try to argue this ridiculous point on this list. You are badly overmatched. You are so wrong that its not worthy of debate. Dennis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message