Nikolai Weibull
12/31/2004 1:19:00 PM
I would like to figure out how much memory a certain class or object
will/is consuming. Is there an easy way? Is there a hard way?
The reason I ask is because I want to keep several hundred thousand
instances of an object much like the following one:
class A
def initialize
@a = @b = @c = @d = nil
@e = 1
end
end
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}