N
Nikolai Weibull
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
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