develooper Front page | perl.perl5.porters | Postings from December 2010

[perl #80480] unicore/ - big and unused?

Thread Next
Karl Williamson via RT
December 30, 2010 21:40
[perl #80480] unicore/ - big and unused?
Message ID:
On Thu Dec 09 05:34:30 2010, wrote:
> This is a bug report for perl from,
> generated with the help of perlbug 1.39 running under perl 5.12.2.
> -----------------------------------------------------------------
> [Please describe your issue here]
> unicore/ contains a lot of apparently unused files:
>    mktables
>    mktables.lst
>    *.txt
>    auxiliary/*
>    extracted/*
> These seem to be unused by perl, and are apparently just a copy of the
> unicode data tables.
> One of the biggest files, however:
> Seem to be part of the testuite only (apparently it only conatins
> autogenerated tests), and surely could be removed?
> Removing alone would save 3.5MB(!) of perl installed size
>    on
> my machine, and not installing the unicode tables (if indeed unused)
>    would
> save 11.5MB of installed data size.
> This is considerable, especially for embedded systems. Please consider
>    not
> installing these files if possible.

Removing most of these is planned for 5.14. is only used
for the test suite and can be removed after that is run.  mktables and
the .txt files are used to generate the tables that the Perl core does
use.  These are not shipped with distribution; ironically apparently to
save space.  However, the tables do take up less space than the source
.txt files.  However, some of these .txt files are used by Unicode::UCD.
 It is planned to change this for 5.14 as well. A few CPAN modules
expect those .txt files to be in place, however.

Building the tables ahead of time would require some changes due to
machine word length issues involving numeric precision with the values
of the Unicode characters that denote infinitely repeating fractions.

In the meantime, you can remove by hand from your machine;
and if you don't intend to recompile, mktables and .lst as well, or you
can remove the all-comment lines from mktables for some space savings
without loss of functionality.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About