Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!aramis.rutgers.edu!athos.rutgers.edu!hedrick From: hedrick@athos.rutgers.edu (Charles Hedrick) Newsgroups: comp.unix.microport Subject: Re: help with malloc on microport Message-ID: Date: 24 Aug 88 17:40:40 GMT References: <304@sarin.UUCP> <138500042@cdp> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 14 To: coan@cdp.UUCP I have a malloc for the large model of SV/AT. It is based on the Cal Tech malloc, used by 4.3BSD, Unipress Emacs, and Gnu Emacs. My version for microport is tuned so it does a minimum number of sbrk calls. Thus using it will both get around the bugs in both versions of malloc supported (?) by Uport, and will also improve performance of programs that do a lot of mallocing. The performance difference can be quite dramatic, because the standard malloc tends to cause a lot of swapping activity. I've posted this already, so I don't think it's a good idea to post it again. However I'd be happy to mail it to anyone who wants it. By the way, I should thank Unipress for allowing me to make it available, since it is based on their malloc. This malloc would not be appropriate for the 386 version, nor would it work for the small model. If the 386 malloc is as bad as the 286 one, it would be easy to produce a version of the same code for it, but this version is carefully tuned for the 286.