Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!julius.cs.uiuc.edu!psuvax1!psuvm!cxt105 From: CXT105@psuvm.psu.edu (Christopher Tate) Newsgroups: comp.sys.mac.programmer Subject: Re: malloc() in Think C programming on the Mac Message-ID: <91034.234404CXT105@psuvm.psu.edu> Date: 4 Feb 91 04:44:04 GMT References: <1CE00001.m1ny6l@tbomb.ice.com> Organization: Penn State University Lines: 28 In article <1CE00001.m1ny6l@tbomb.ice.com>, time@tbomb.ice.com (Tim Endres) says: >Using NewPtr() to allocate hundreds of 8 byte objects is not very >efficient on the Macintosh. This may not make any difference on your >weekend programming project, but for commercial or other serious work, >it is a real problem. > >We have a version of malloc written here at ICE specifically for the >Macintosh. It is really nice and uses "pools" allowing me to separate >the areas in which memory is allocated. This also solves "leak" problems, >as I can allocate "leaky" objects in one specific pool, then at some >predetermined time free the entire pool and not worry about freeing >individual objects! > >We are considering posting this code to the net. Anyone interested? >If so, it will take time to document the code and clean it up for >release, so it won't happen soon, but it won't happen at all if there >is little interest. Post it! Post It! POST IT! ***POST IT*** !!!!!!!!!!!! ------- Christopher Tate | | In space, no one can cxt105@psuvm.psu.edu | hear you sneeze. {...}!psuvax1!psuvm.bitnet!cxt105 | cxt105@psuvm.bitnet |