X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 82D67DA286 for ; Wed, 5 Oct 2005 21:12:46 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69201-07 for ; Thu, 6 Oct 2005 00:12:39 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id EAFE9DA272 for ; Wed, 5 Oct 2005 21:12:39 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1ENJNJ-0007L9-Aw for pgsql-performance@postgresql.org; Thu, 06 Oct 2005 02:12:42 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1ENJNH-0002ja-00 for ; Thu, 06 Oct 2005 02:12:39 +0200 Date: Thu, 6 Oct 2005 02:12:39 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: [HACKERS] A Better External Sort? Message-ID: <20051006001239.GB7856@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <20051005153349.GZ2241@mathom.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 2.6.11.8 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 required=5 tests=[AWL=0.013] X-Spam-Level: X-Archive-Number: 200510/119 X-Sequence-Number: 14887 On Wed, Oct 05, 2005 at 04:55:51PM -0700, Luke Lonergan wrote: > In COPY, we found lots of libc functions like strlen() being called > ridiculous numbers of times, in one case it was called on every > timestamp/date attribute to get the length of TZ, which is constant. That > one function call was in the system category, and was responsible for > several percent of the time. What? strlen is definitely not in the kernel, and thus won't count as system time. /* Steinar */ -- Homepage: http://www.sesse.net/