mktables: Stop generating most leading zeros
authorKarl Williamson <public@khwilliamson.com>
Mon, 28 Oct 2013 22:43:01 +0000 (16:43 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 31 Dec 2013 15:27:16 +0000 (08:27 -0700)
commit2a59a71e7ec8027f4c08e367896eb56205f24b4c
tree4c8931a65d30fd2f19a133e24bf350f37903dd7d
parentb62f510e84d9ecc948721e9556691847cb83a4b4
mktables: Stop generating most leading zeros

Leading zeros were generated to conform with Unicode usage, but these
are machine-read files so this just takes up some extra space and extra
parsing cycles at run-time.  It's a small matter, but we should design
our files to be the most efficient possible.  It is possible to get more
human-readable files by using the -annotate option to mktables.

Certain files whose existence has been published have their formats
unchanged, in case some application is reading them.  The files contain
comments that their use is deprecated, but there is no warning generated
if they are opened and read, nor is it really feasible to add such a
warning.  At some time in the future, we may feel it's ok to remove
these files, as their contents have been available since v5.16 through a
stable API in Unicode::UCD, but until we remove them, we shouldn't
change their formats.

Not all other leading zeros are removed; just the ones that were
convenient to remove.
lib/Unicode/UCD.t
lib/unicore/mktables