Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!lanl!ttw From: ttw@lanl.gov (Tony Warnock) Newsgroups: comp.unix.cray Subject: Re: Malloc() under UNICOS Message-ID: <61360@lanl.gov> Date: 28 Aug 90 16:51:52 GMT References: <5931@castle.ed.ac.uk> Organization: Los Alamos Natl Lab, Los Alamos, N.M. Lines: 11 Generally, system actions such as MALLOC() cannot be speeded up. These ususally require at least a trip through the operating system. If the current location of the program in memory does not have enough room for the program to expand, the job must be swapped to disk and then put back into a larger slot. The only good way to remove time from MALLOC() is not to call it as often. You will have to re-write your algorithm not to do so much memory management.