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

Re: faster Config.pm, charnames.pm, ..

Thread Previous | Thread Next
From:
Elizabeth Mattijsen
Date:
September 8, 2003 06:06
Subject:
Re: faster Config.pm, charnames.pm, ..
Message ID:
p05111b0abb822ee609fd@[192.168.56.4]
At 14:45 +0300 9/8/03, Enache Adrian wrote:
>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.
>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:

I'm only interested (probably my tunnel vision  ;-) in saving memory, 
as that means saving memory multiple times over when using threads, 
plus making threads faster on startup.


>Please try this on a *BSD with the system's malloc:
>$ perl -e 'use charnames ":full"; print "\N{LATIN SMALL LETTER A}"'

;-)  Don't try this at home, then...  ;-)


Liz

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