How do I figure out how many bytes a defclass
object has in Common Lisp?
views:
102answers:
1
+2
A:
You can't do that in portable Common Lisp.
Useful could be the function ROOM. ROOM prints memory statistics and with the argument T it prints them detailed. So you may see a difference before and after some instance creations. Implementations may have specific functions, but you need to check that with the manual or with the support mailing list.
Rainer Joswig
2010-09-13 17:54:57
Interesting. (side explanation: I am dealing with lots of things and I'm trying to figure out how to optimize them smaller)
Paul Nathan
2010-09-13 18:12:49
Some implementations will let you profile allocation to find the hotspots. That's much a much better way to improve the footprint.
Xach
2010-09-13 19:02:16