Re: sizeof in Clojure

2009-07-24 Thread Rich Hickey
On Fri, Jul 24, 2009 at 5:04 AM, Jan Rychter wrote: > >> On Jul 21, 5:51 am, Jan Rychter wrote: >>> Is there a way to get the size of a data structure in Clojure? >>> >>> I've been wondering how much more space-efficient vectors are than >>> lists, but I don't know how to measure it. > > Stuart S

Re: sizeof in Clojure

2009-07-24 Thread Jan Rychter
> On Jul 21, 5:51 am, Jan Rychter wrote: >> Is there a way to get the size of a data structure in Clojure? >> >> I've been wondering how much more space-efficient vectors are than >> lists, but I don't know how to measure it. Stuart Sierra writes: > Short answer: no, because Java has no sizeof

Re: sizeof in Clojure

2009-07-21 Thread Daniel
On Tue, Jul 21, 2009 at 9:07 PM, Stuart Sierra 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

Re: sizeof in Clojure

2009-07-21 Thread Stuart Sierra
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. Since all of clojure's data structures are persistent (reusable), they won't necessarily meet your expectations for memory usage based on the standa

sizeof in Clojure

2009-07-21 Thread Jan Rychter
Is there a way to get the size of a data structure in Clojure? I've been wondering how much more space-efficient vectors are than lists, but I don't know how to measure it. --J. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo