home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19324 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!think.com!paperboy.osf.org!dbrooks
  3. From: dbrooks@osf.org (David Brooks)
  4. Subject: Re: FLAME, FLAME ON X!!!
  5. Message-ID: <1992Nov19.040434.12181@osf.org>
  6. Followup-To: comp.windows.x
  7. Sender: news@osf.org (USENET News System)
  8. Reply-To: dbrooks@osf.org (David Brooks)
  9. Organization: Open Software Foundation
  10. References: <RJC.92Nov13144522@daiches.cogsci.ed.ac.uk> <1992Nov16.162457.2923@osf.org> <1ebs7rINNp9k@armory.centerline.com>
  11. Date: Thu, 19 Nov 1992 04:04:34 GMT
  12. Lines: 25
  13.  
  14. jimf@centerline.com (Jim Frost) writes:
  15.  
  16. >Unfortunately power-of-two allocation is remarkably wasteful of
  17. >virtual memory (which means wasteful of real live swap space on many
  18. >systems).
  19.  
  20. Then why have I heard people recommend using gnu malloc with X, people who
  21. I thought would be in the know?  The only gnu mallocs I've seen use
  22. exclusively power-of-two allocation, and don't attempt to split a larger
  23. block or merge blocks on free.  There's even a comment:
  24.  
  25.   /* If there are no blocks of the appropriate size, go get some */
  26.   /* COULD SPLIT UP A LARGER BLOCK HERE ... ACT */
  27.  
  28. >  It works fine for very tiny allocations but once you start
  29. >allocating those "unusual" sizes like 80-byte segments you start
  30. >seeing major memory waste as well as relatively slow free-element
  31. >location compared to several other techniques.
  32.  
  33. Well, maybe X does use relatively small allocations, except for pixmaps
  34. (which is where we came in).
  35. -- 
  36. David Brooks                    dbrooks@osf.org
  37. Open Software Foundation            uunet!osf.org!dbrooks
  38. Allⁿberall und ewig blauen licht die Fernen!  Ewig... ewig... earwig... O!
  39.