X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9736B52A80 for ; Fri, 19 Aug 2005 02:34:45 -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 56111-06 for ; Fri, 19 Aug 2005 05:34:41 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 99029528C6 for ; Fri, 19 Aug 2005 02:34:37 -0300 (ADT) Received: (qmail 31126 invoked by uid 1112); 19 Aug 2005 05:34:38 -0000 Date: Fri, 19 Aug 2005 00:34:38 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: "pgsql-jdbc@postgresql.org" Subject: Re: Updated high-unicode patch In-Reply-To: <42C2AB88.8020602@opencloud.com> Message-ID: References: <42C2AB88.8020602@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200508/133 X-Sequence-Number: 13702 On Thu, 30 Jun 2005, Oliver Jowett wrote: > The attached patch is an updated and bugfixed version of my earlier > patch to support UTF-8 encoding of unicode codepoints above U+FFFF I'm don't like the cost of the new tests included here. On my 2 x PIII 800 machine the entire JDBC 2 test suite takes 212 seconds. testEncoding takes 67 seconds testUTF8Decode takes 111 seconds for a whopping 84% of the test time for 2 out of 220 tests. Do you have any recommendations for lowering this? Random ideas that I could see: - using STEP in testUTF8Decode as well to reduce the number of iterations and adding a BIGSTEP for the high unicode range - selecting a representative sample of codepoints to test - creating a separate encoding test suite that is driven by "ant enctest" - running the tests only occasionally since they don't depend on JVM or database version and should therefore be pretty static, say randomly 1 out of 10 runs. - doing nothing 3.5 minutes isn't really all that long Kris Jurka