Certificate of Class Seal Benefits

Possible duplicate:
Do sealed classes really offer performance benefits?

My team is struggling with closed class debates inside, and I would like to simplify the discussion down to the design issue and get the performance myth from the debate agenda.

Can someone post some code demonstrating the performance improvement introduced by declaring the class as sealed? With 20 million virtual method calls per second, I don’t see much benefit, maybe 1 or 2 milliseconds per 10 million iterations, but even then I'm not sure because the result is skipping. This applies to debug and release runs.

ps I am following some of John Skeet's who have gained wisdom about the benefits of a sealed class design, especially when software comes across the org command or border and / or classes - this is the package style of the component in the assembly.

+6
c # oop sealed
source share

No one has answered this question yet.

See similar questions:

114
Do sealed classes really offer benefits?

or similar:

1688
What is the difference between an interface and an abstract class?
1324
Interface versus abstract class (generic OO)
1085
Naming classes - how to avoid calling the entire "<WhatEver> Manager"?
941
What is the difference between old style and new style classes in Python?
708
Interface vs Base Class
594
How to get javascript object class?
556
What are the true benefits of ExpandoObject?
308
What is a sealed trait?
114
Do sealed classes really offer benefits?
90
Static and sealed class differences

All Articles