develooper Front page | perl.perl5.porters | Postings from September 2003

faster Config.pm, charnames.pm, ..

Thread Previous | Thread Next
From:
Enache Adrian
Date:
September 8, 2003 05:51
Subject:
faster Config.pm, charnames.pm, ..
Message ID:
20030908114538.GA1578@ratsnest.hole
On Mon, Sep 08, 2003 a.d., Nicholas Clark wrote:
> I think that I had trying to make Config.pm less heavy in my TODO.
> 
> as a start, I was considering surveying which values in %Config are
> popular, to try to partition those from the vast majority, which are
> deadweight in nearly every program. As %Config is a tied hash, I believe
> that it can all be done transparently.

Since Config.pm does an C<index> in a big string (which is fairly fast),
I don't think you're gonna to win anything by splitting that string in
smaller pieces and then putting there a complicated high-level logic to
select between them.

More could be win by slurping config.sh instead of putting it into a
here document, especially on platforms with a bogus realloc.

But config.sh is rather small anyway -- let's better talk about charnames:

Please try this on a *BSD with the system's malloc:

$ perl -e 'use charnames ":full"; print "\N{LATIN SMALL LETTER A}"'

Regards,
Adi

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