Charles Oliver Nutter wrote:
Here's a comparison of performance for Object#object_id with and without ObjectSpace enabled (with id2ref disabled when ObjectSpace is disabled):

Before:
1M calls to Object#object_id    0.388000   0.000000   0.388000 (  0.388000)

After:
1M calls to Object#object_id    0.286000   0.000000   0.286000 (  0.286000)

Maybe it's not big enough to make a big difference, but it could add up.

Sorry, I still had the synchronization in place, which would not be necessary if we did not have to do the ObjectSpace stuff.

After:
1M calls to Object#object_id    0.170000   0.000000   0.170000 (  0.170000)

Seems a bit more substantial, eh?

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to