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

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

Thread Next
From:
Karl Williamson via RT
Date:
December 30, 2010 21:40
Subject:
[perl #80480] unicore/TestProp.pl - big and unused?
Message ID:
rt-3.6.HEAD-5425-1293774036-542.80480-15-0@perl.org
On Thu Dec 09 05:34:30 2010, perl@plan9.de wrote:
> 
> This is a bug report for perl from perl@plan9.de,
> 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:
> 
>    TestProp.pl
> 
> Seem to be part of the testuite only (apparently it only conatins
> autogenerated tests), and surely could be removed?
> 
> Removing TestProp.pl 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.  TestProp.pl 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 TestProp.pl 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About