home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!ieunet!dec4ie.ieunet.ie!jkh
- From: jkh@whisker.lotus.ie (Jordan K. Hubbard)
- Newsgroups: comp.unix.bsd
- Subject: [386bsd] GNU malloc in favor of BSD malloc in libc - shall we vote?
- Message-ID: <JKH.92Dec31154004@whisker.lotus.ie>
- Date: 31 Dec 92 15:40:04 GMT
- Sender: usenet@ieunet.ie (USENET News System)
- Distribution: comp
- Organization: Lotus Development Ireland
- Lines: 20
- Nntp-Posting-Host: whisker.lotus.ie
-
- I would be very much in favor of scrapping BSD malloc forever more and
- putting GNU malloc in the C library. Not only is memory usage far
- more efficient, but GNU malloc also returns space to the system;
- something BSD malloc does not do. If the sense of this does not
- immediately strike you, then try a small experiment: Start up an emacs
- and look at its size with ps. Now Read in a very large file and
- observe the size again. Finally, delete the buffer containing the
- file and look again - it will not have shrunk back to its original
- size (nor will it ever - you'll have to exit the emacs to get the space
- back). Try all this with GNU malloc and observe the pleasant difference.
-
- I say we petition Bill to use GNU malloc in preference. Most folks aren't
- going to know enough (or dare) to replace malloc in libc themselves, but
- they will notice the very painful state of affairs that trying to work
- in a low memory environment brings; why not spare them the pain?
-
- Jordan
- --
- Jordan Hubbard Lotus Development Ireland jkh@whisker.lotus.ie
- I DO NOT SPEAK FOR LOTUS - IT HAS PLENTY OF LAWYERS TO DO THAT FOR IT ALREADY
-