From owner-freebsd-current@FreeBSD.ORG Sun Aug 15 20:56:34 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAC4A10656C0; Sun, 15 Aug 2010 20:56:34 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 8E4548FC13; Sun, 15 Aug 2010 20:56:34 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id CD7A214DC675; Sun, 15 Aug 2010 22:56:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at server.mypc.hu Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k4eKv4RVVpam; Sun, 15 Aug 2010 22:56:31 +0200 (CEST) Received: from [192.168.1.105] (catv-80-99-92-167.catv.broadband.hu [80.99.92.167]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 71C7214DC548; Sun, 15 Aug 2010 22:56:31 +0200 (CEST) Message-ID: <4C68547E.2080907@FreeBSD.org> Date: Sun, 15 Aug 2010 22:56:30 +0200 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-PT; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <4C6505A4.9060203@FreeBSD.org> <20100813085235.GA16268@freebsd.org> <4C66C010.3040308@FreeBSD.org> <4C673F02.8000805@FreeBSD.org> <20100815013438.GA8958@troutmask.apl.washington.edu> <4C67492C.5020206@FreeBSD.org> <8639ufd78w.fsf@ds4.des.no> In-Reply-To: <8639ufd78w.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Doug Barton , Justin Hibbits , core@freebsd.org, delphij@freebsd.org, Steve Kargl , current@freebsd.org Subject: Re: Official request: Please make GNU grep the default X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 20:56:34 -0000 Em 2010.08.15. 21:07, Dag-Erling Smørgrav escreveu: > Ignore the first two lines (that's the profiling code itself). Note > that the top five lines are all in stdio, and nothing else even shows up > on the radar. I only included enough output to show where the regexp > code ranks; the complete output is attached. > > I hate to suggest reinventing the wheel, but IMHO, this is clearly a > case where it would pay to use hand-rolled buffered input routines > instead of stdio. > Thank you very much for the valuable tests, I've already started to refactor this part but it will take some time and still it doesn't garantize that the performance will be the same as GNU's with this change. It may need more investigation, so I'm also already testing my patch to change the default and we'll see how the performance improvement progresses. Gabor