develooper Front page | perl.perl5.porters | Postings from January 2011

Re: move dump.c to a module?

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
January 2, 2011 02:02
Subject:
Re: move dump.c to a module?
Message ID:
20110102100234.GQ24189@plum.flirble.org
On Sat, Jan 01, 2011 at 07:28:25PM +0000, Nicholas Clark wrote:

> I suspect that a chunk of pp_sys could sensibly go this way (uid and
> password functions, semaphores, SysV shared memory, socket ops). However
> 
> a: I'm not sure how much that would shrink pp_sys.o
> b: pp_sys.o is only 10% of the perl binary, so there's quite a lot of work
>    (and added complexity) for at most a 10% gain. Probably more like <5%.

I experimented with disabling all the socket functions.

$ ll pp_sys.o*
-rw-r--r-- 1 nick nick 116712 Jan  2 09:21 pp_sys.o
-r--r--r-- 1 nick nick 133464 Dec 28 06:49 pp_sys.o.orig

That's not much of a space saving.

Also, I infer that every platform Perl builds on has sockets, as 17 test
scripts fail without them, and no-one has reported this.

Nicholas Clark

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