Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC4UM-0004mT-IJ for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2016 12:59:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cC4UM-0002CO-55 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Nov 2016 12:59:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cC4UK-0002Bg-DU for pgsql-hackers@postgresql.org; Wed, 30 Nov 2016 12:59:52 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cC4UH-00024Y-Ln for pgsql-hackers@postgresql.org; Wed, 30 Nov 2016 12:59:51 +0000 Received: by mail-lf0-x242.google.com with SMTP id o141so15784324lff.1 for ; Wed, 30 Nov 2016 04:59:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=fSC9qXuufPe8AQMpGMrqeACpGfbCFeNkVaFFYnMiq3U=; b=vATQmkvlPUWlXUoGJUONlCgNYoZfS7d9qdt4ZqbnR6qjR9SulXMpRfJhcDeKBGm85k 8XsvA1qDON+aKdZBqWQek8TdOsm/8QI5QO2b4mCuKcUVKjxih0uiofi1EbIwK/IgusEa MF95cWqp3697siEpt6DvmwHtA6jRdsLunOXuFGUZ3lnuqCFcTrQvlcLZUO9Ra533x/iK sjWHfafqUJYAQaTeuFJ58CJPwGWlt7zPtsxJEz4wSMD5zACDb3jOBpDd5yU4GRKEYVqx RGaL6egAYFih2pyGxXJRGb57oKvdEi6jsLGqpb1NKgfS9oOZwixQSmjzDSIbf1w9GDBE dcVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fSC9qXuufPe8AQMpGMrqeACpGfbCFeNkVaFFYnMiq3U=; b=h365f9eSASo4WJJCq9Jvov9AUliYnSvOQK1CFjY+N8FCGMhPL8ldH+pIbsTdrMRXjl bwhTtI4TFMUgSVeTQV6kLnI9+443sD6ns43X/zKyRxcIG8ETTMqArVmVv1l3hrlXDtuF AQmJhyz0SIVYF3t3FGVXxpOvpCgmP65n0IV+nsEPYgk4pNVeq8MHc1lNDoFL2ZfMuoh9 V4R4H+lpubZw4Vi26geEoWsDawLXuoZe0bJc0dW6KonAHM5rRe7hAvqgoz3qvwnFwGJm LW2vhVzsK5bfTAXFwftdR6gLMolOSNvZYiWH+2Wg2nyPraEbOGhN+z3jPVJ2DcNohuBQ QPLA== X-Gm-Message-State: AKaTC01cZXpW9fK0rFeXX1M26cHx99wR3mD860DDX7fCR8pSAjKN+HUQZs3IQVd/yu4y5w== X-Received: by 10.25.31.147 with SMTP id f141mr12431386lff.121.1480510786575; Wed, 30 Nov 2016 04:59:46 -0800 (PST) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id 89sm14400416lja.16.2016.11.30.04.59.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Nov 2016 04:59:45 -0800 (PST) Subject: Re: Radix tree for character conversion To: Daniel Gustafsson , Kyotaro HORIGUCHI References: <6d85d710-9554-a928-29ff-b2d3b80b01c9@iki.fi> <20161021.173321.105120238.horiguchi.kyotaro@lab.ntt.co.jp> <08e7892a-d55c-eefe-76e6-7910bc8dd1f3@iki.fi> <20161027.162337.204351475.horiguchi.kyotaro@lab.ntt.co.jp> <3FC648B5-2B7F-4585-9615-207A44B730A9@yesql.se> Cc: robertmhaas@gmail.com, tsunakawa.takay@jp.fujitsu.com, tgl@sss.pgh.pa.us, ishii@sraoss.co.jp, pgsql-hackers@postgresql.org From: Heikki Linnakangas Message-ID: Date: Wed, 30 Nov 2016 14:59:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <3FC648B5-2B7F-4585-9615-207A44B730A9@yesql.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 10/31/2016 06:11 PM, Daniel Gustafsson wrote: >> On 27 Oct 2016, at 09:23, Kyotaro HORIGUCHI wrote: >> >> At Tue, 25 Oct 2016 12:23:48 +0300, Heikki Linnakangas wrote in <08e7892a-d55c-eefe-76e6-7910bc8dd1f3@iki.fi> >>> >>> [..] >>> The perl scripts are still quite messy. For example, I lost the checks >>> for duplicate mappings somewhere along the way - that ought to be put >>> back. My Perl skills are limited. >> >> Perl scripts are to be messy, I believe. Anyway the duplicate >> check as been built into the sub print_radix_trees. Maybe the >> same check is needed by some plain map files but it would be just >> duplication for the maps having radix tree. > > I took a small stab at doing some cleaning of the Perl scripts, mainly around > using the more modern (well, modern as in +15 years old) form for open(..), > avoiding global filehandles for passing scalar references and enforcing use > strict. Some smaller typos and fixes were also included. It seems my Perl has > become a bit rusty so I hope the changes make sense. The produced files are > identical with these patches applied, they are merely doing cleaning as opposed > to bugfixing. > > The attached patches are against the 0001-0006 patches from Heikki and you in > this series of emails, the separation is intended to make them easier to read. Thanks! Patches 0001-0003 seem to have been mostly unchanged for the later discussion and everyone seems to be happy with those patches, so I picked the parts of these cleanups of yours that applied to my patches 0001-0003, and pushed those. I'll continue reviewing the rest.. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers