home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / lisp / mcl / 1870 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.5 KB

  1. Path: sparky!uunet!stanford.edu!apple!cambridge.apple.com!cartier@math.uqam.ca
  2. From: cartier@math.uqam.ca (Guillaume Cartier)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Slow macintosh memory allocation (summary)
  5. Message-ID: <9212221611.AA20817@mipsmath.math.uqam.ca>
  6. Date: 22 Dec 92 16:11:31 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 32
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10.  
  11. Many thanks to everybody who answered my question:
  12.  
  13. <---
  14. | I have a program that runs well for some time
  15. | and then gradually becomes slower and slower and slower.
  16. | I have tracked the problem down to the fact that
  17. | when it has becomed very slow, a single
  18. | (make-record :rgbcolor) (or any mac memory allocation)
  19. | takes almost half a second!
  20. | Strangely, at this point, a (ROOM) shows 145K of free
  21. | Mac Heap.
  22. --->
  23.  
  24. The problem was due to the Mac Heap becoming very fragmented
  25. because of mac pointers and handles that I failed to dispose of.
  26.  
  27. In solving the problem, MCL's undocumented feature of GC'able
  28. mac pointers was *very* usefull (the GC is much better at keeping
  29. track of what's no longer in use than myself!).
  30.  
  31. Guillaume.
  32.  
  33. *********************************************************************
  34. * Guillaume Cartier                 (514) 844-5294 (maison)         *
  35. * L.A.C.I.M.                        (514) 987-4290 (bureau)         *
  36. * Universite du Quebec a Montreal   (514) 987-8477 (telecopieur)    *
  37. * Montreal, Quebec, Canada          cartier@math.uqam.ca (internet) *
  38. *********************************************************************
  39.