From owner-freebsd-hackers Wed Jan 29 14:47:30 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA27266 for hackers-outgoing; Wed, 29 Jan 1997 14:47:30 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA27251 for ; Wed, 29 Jan 1997 14:47:27 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.4/8.8.4) with SMTP id OAA25606 for ; Wed, 29 Jan 1997 14:46:26 -0800 (PST) Message-ID: <32EFD2E2.167EB0E7@whistle.com> Date: Wed, 29 Jan 1997 14:44:50 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: hackers@freebsd.org Subject: [Fwd: freebsd performance.] Content-Type: multipart/mixed; boundary="------------794BDF32446B9B3D2781E494" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is a multi-part message in MIME format. --------------794BDF32446B9B3D2781E494 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit A commnet from someone using FreeBSD in a production project.. I know nothing about the regex stuff... anyone have comments? people who have committed their proffesional name on using freeBSD deserve sume special support. julian --------------794BDF32446B9B3D2781E494 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Return-Path: Received: from whistle.com (whistle.whistle.com [207.76.205.131]) by alpo.whistle.com (8.8.4/8.8.4) with ESMTP id JAA18431 for ; Wed, 29 Jan 1997 09:42:39 -0800 (PST) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id JAA16637 for ; Wed, 29 Jan 1997 09:42:37 -0800 (PST) Received: from gatekeeper.whistle.com(207.76.204.2) by whistle.com via smap (V1.3) id sma016635; Wed Jan 29 09:42:31 1997 Received: (from smap@localhost) by gatekeeper (8.7.5/8.6.12) id JAA15158 for ; Wed, 29 Jan 1997 09:42:31 -0800 (PST) Received: from idiom.com(140.174.82.4) by gatekeeper via smap (V1.3) id sma015156; Wed Jan 29 09:41:12 1997 Received: from localhost (jason@localhost [127.0.0.1]) by idiom.com (8.8.5/8.8.3) with SMTP id JAA10621 for ; Wed, 29 Jan 1997 09:41:11 -0800 (PST) Message-Id: <199701291741.JAA10621@idiom.com> X-Authentication-Warning: idiom.com: jason@localhost [127.0.0.1] didn't use HELO protocol To: julian@whistle.com Subject: freebsd performance. Date: Wed, 29 Jan 1997 09:41:11 -0800 From: Jason Venner The posix regex library is VERY VERY slow. I have a program that uses a large regex to parse some input. I have a version in perl and a version in C++ using the freebsd posix regex library. The perl version is 100X faster that the C++ version. gprof on the C++ version shows 99% of the spend in: 91.53 46.17 46.17 1152366 0.04 0.04 lstep 6.52 49.46 3.29 98497 0.03 0.47 lslow --------------794BDF32446B9B3D2781E494--