nm -P perl (in Linux, -P being the "POSIX" option) tells me that (in x86) the PerlIO_fd_refcnt is 0x2000 or 8 kilobytes. perlio.c:2227:int PerlIO_fd_refcnt[PERLIO_MAX_REFCOUNTABLE_FD]; perlio.c:59:#define PERLIO_MAX_REFCOUNTABLE_FD 2048 Hmm. An array of 2048 ints, representing 2048 fds. Hmm. A smaller array for first, say, 256 fds, then a hash for the rest, or just a hash for all? I can't off-hand believe that refcounting fds can require blazing speeds. Or are hashes so big that our space savings just went south? (The array being a global makes me shiver, too.) (The nm -P size output is educational in general.)Thread Next