[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Serious performance bug in Perl



Ben Gertzfield <che@debian.org> writes:

> >>>>> "Daniel" == Daniel Martin at cush <dtm12@jhunix.hcf.jhu.edu> writes:
> 
>     Daniel> It's a perl thing.  I can almost guarantee it.  The
>     Daniel> problem is perl's shadow password support and it's getpw*
>     Daniel> functions.  Whenever these functions are called (and
>     Daniel> assigned to a variable; if you just call them and discard
>     Daniel> the value immediately this doesn't happen), perl attempts
>     Daniel> to look up the shadow password entry associated with the
>     Daniel> given struct passwd *, and this takes a while - especially
>     Daniel> since the /etc/shadow file is closed immediately after
>     Daniel> each fetch. 
> 
> This is probably because the patch that allows Debian's Perl to
> use getspnam() and friends is pretty new and untested.
> 
> Is there any way you can look at
> http://www.rosat.mpe-garching.mpg.de/mailing-lists/perl-porters/1998-03/msg01574.html
> and see if the patch there can be made better?
> 
> Let's try to fix this problem.

My... it's been a while since I was investigating perl internals
(writing C code that was callable from perl) - at least two years,
which somehow seems much longer.

Well, I'll have my machine download the perl source tonight and see
what I can see...


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: