Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!jarthur!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: perl memory usage? Message-ID: <7515@jpl-devvax.JPL.NASA.GOV> Date: 23 Mar 90 04:01:22 GMT References: <1990Mar19.210743.15896@chinet.chi.il.us> <7480@jpl-devvax.JPL.NASA.GOV> <1990Mar22.210715.4191@chinet.chi.il.us> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 15 In article <1990Mar22.210715.4191@chinet.chi.il.us> les@chinet.chi.il.us (Leslie Mikesell) writes: : Well, it turns out that the arrays and subroutines don't have anything : to do with it. Memory is being gobbled by simple scalar assignments : out of the pattern match chunks. With patchlevel 14 on AT&T SysvR3.2.1 : '386 unix, each pass adds about 7 blocks to the memory size shown by ps. : Commenting out the: $show = "$` <-> $'" ; fixes it. Help!!! Well, actually, it turns out to be in the pattern match itself. The reason the assignment enabled it is that pattern matching has to do extra junk if any of $&, $` or $' are mentioned elsewhere in the program. It was in the extra stuff that the booboo was. Fixed in 16. Larry