Path: utzoo!attcan!uunet!aplcen!samsung!umich!sharkey!itivax!umeecs!don From: don@zip.eecs.umich.edu (Don Winsor) Newsgroups: comp.lang.perl Subject: Reducing data space of a perl program Message-ID: <1220@zip.eecs.umich.edu> Date: 12 Jan 90 19:31:04 GMT Organization: University of Michigan EECS Dept., Ann Arbor Lines: 14 We have been working with a large and complicated perl program that uses lots of memory (the resident set is up to 8 megabytes). To try to optimize it, we would like to find out which data structures are using the most space. Has anyone done this? Does anyone know of a good way to determine how much storage a perl array or associative array is consuming? The ideas that come to my mind are to either write some kind of perl utilities to traverse arrays and find their total size, or to compile perl with -g and use dbx to dig through it's memory. Any advice or suggestions would be appreciated. Don Winsor Department of Electrical Engineering and Computer Science University of Michigan, Ann Arbor don@dip.eecs.umich.edu