Re: Radix tree for character conversion
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
From: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
To: daniel@yesql.se
Cc: hlinnaka@iki.fi, robertmhaas@gmail.com, tsunakawa.takay@jp.fujitsu.com,
tgl@sss.pgh.pa.us, ishii@sraoss.co.jp, pgsql-hackers@postgresql.org
Date: 2016-11-04T07:34:33Z
Lists: pgsql-hackers
Thank you for looling this. At Mon, 31 Oct 2016 17:11:17 +0100, Daniel Gustafsson <daniel@yesql.se> wrote in <3FC648B5-2B7F-4585-9615-207A44B730A9@yesql.se> > > On 27 Oct 2016, at 09:23, Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> wrote: > > 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. I'm not sure how the discussion about this goes, these patches makes me think about coding style of Perl. The distinction between executable script and library is by intention with an obscure basis. Existing scripts don't get less modification, but library uses more restricted scopes to get rid of the troubles caused by using global scopes. But I don't have a clear preference on that. The TAP test scripts takes OO notations but I'm not sure convutils.pl also be better to take the same notation. It would be rarely edited hereafter and won't gets grown any more. As far as I see the obvious bug fixes in the patchset are the following, - 0007: load_maptable fogets to close input file. - 0010: commment for load_maptables is wrong. - 0011: hash reference is incorrectly dereferenced All other fixes other than the above three seem to be styling or syntax-generation issues and I don't know whether any recommendation exists... regards, -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Use radix tree for character encoding conversions.
- aeed17d00037 10.0 landed
-
Small fixes to the Perl scripts to create unicode conversion tables.
- bc1686f3f653 10.0 landed
-
Rewrite the perl scripts to produce our Unicode conversion tables.
- 1de9cc0dcca6 10.0 landed
-
Remove leading zeros, for consistency with other map files.
- 6c303223be34 10.0 landed
-
Remove code points < 0x80 from character conversion tables.
- 2c09c93ce1b8 10.0 landed