Method: RTree#size

Defined in:
lib/rtree.rb

#sizeInteger

Note:

This method traverses the entire tree summing the contributions for each node (rather than maintaining a running count). Performance-minded users may wish to cache this value (invalidating the cache when calling #add_rect of course).

Returns the total bytes allocated for the instance.

Returns:

  • (Integer)

    the total bytes allocated for the instance



481
482
483
# File 'lib/rtree.rb', line 481

def size
  super
end