« On CFInternals | Main | When is a Singleton not a Singleton? »

Comments

Harel Malka

Michael, (seems like we're comment swapping here ;o)

I think my point was missed here. I use extension all the time, in the same scenario you describe. It’s a good and useful tool as is composition. My test was regarding 3 levels extensions. Where you have an object that extends another, and that one extends yet another. I would have expected, in an ideal world, that the compiled object will not bring with it 3 object instantiation penalty with it, but it does. (I’ve added the 2 level extension to the test as an after-thought but my original one involved no extension vs 3 level one). Composition allows you cache objects in that scenario where extension does not.

Harel

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment