develooper Front page | perl.perl5.porters | Postings from July 2012

Re: [PATCH] Module::CoreList delta support

Thread Previous | Thread Next
From:
Chris 'BinGOs' Williams
Date:
July 29, 2012 08:27
Subject:
Re: [PATCH] Module::CoreList delta support
Message ID:
20120729150840.GA1671@klanker.bingosnet.co.uk
On Sun, Jul 29, 2012 at 01:22:50PM +0100, David Leadbeater wrote:
> Hi,
> 
> I've added delta support to Module::CoreList, which makes it a bit smaller,
> I'm not sending it to the list or RT because it's huge (mostly removed
> lines), it's at:
> https://github.com/dgl/perl/commit/e08139414a12cd6d613816f6eeee39b95a63538
> 
> Yes it uses tie, which I'm not entirely pleased with however see for
> example: http://grep.cpan.me/?q=%5C%24Module%3A%3ACoreList%3A%3Aversion for
> the sheer amount of stuff reading from those hashes.
> 
> (There's also another cleanup patch on top of it to reduce the manual work
> needed to alias releases:
> https://github.com/dgl/perl/commit/8d2b6197299cd9c5cf45bbc4016850cab1bd348f)
> 

Myself and Dave Golden had been working on reducing the size of Module-CoreList
(Mainly Dave to be fair).

The work so far is at https://github.com/bingos/module-snorelist

All the data is compressed and uuencoded.

This does have an affect on performance.

# current corelist
$ time corelist -a CPANPLUS

<snip>

real    0m1.105s
user    0m0.947s
sys     0m0.049s

# snorelist corelist
$ time perl -Mblib blib/script/corelist -a CPANPLUS

<snip>

real    0m3.810s
user    0m1.462s
sys     0m1.839s

Even with delta'd information that CoreList.pm is a 8000+ file :(

-- 
Chris Williams
aka BinGOs
PGP ID 0x4658671F
http://www.gumbynet.org.uk
==========================

Thread Previous | 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