Function Reference: RTree.size

RTree: n = size ()

The total bytes n allocated for the instance.

This method traverses the entire tree summing 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).