On Tue, Jul 21, 2009 at 9:07 PM, Stuart Sierra<the.stuart.sie...@gmail.com> wrote: > > Hi Jan, > > Short answer: no, because Java has no sizeof operator. > > You can use Java profiling tools to examine the memory usage of your > app if needed. >
I would recommend heading down the path that Stuart suggested. But interestingly, there actually exists a 'solution' that doesn't rely on a Profiler. The approach is described in a JavaWorld article (http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html). Keep in mind that it's 6 years old, and that it's written for Java, and that the data structures for Clojure might have intricacies in them, but with all that in mind, there are some gems in there if you're set to have a sizeof operator in Clojure. Have fun. Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---