c# static constructor?
- From: "ms news group" <noret@xxxxxxxxx>
- Date: Thu, 3 May 2007 11:44:40 +0800
I have done some research on this issue, but still quite puzzled.
I read one article that says static constructor can be a big performance
hit, it even gives some code fragment, which, accoring to that article,
could show a big difference betweeen using static constructor or not. But
when I run his code, I found no significant diifference at all.
For this reason, I even checked the assemly code of using static
constructor, and I can not find any thing that will cause performornce
degradation.
Or course, lazy initialization is good, but not all cases really care that
much about startup time, so I doubt if the performance issue of static
constructor is exagerated.
Could someone shed some light on this?
.
- Follow-Ups:
- Re: c# static constructor?
- From: Oliver Sturm [MVP C#]
- Re: c# static constructor?
- Prev by Date: Re: How to monitor Database load ???
- Next by Date: c# static constructor?
- Previous by thread: Re: How to monitor Database load ???
- Next by thread: Re: c# static constructor?
- Index(es):
Relevant Pages
|
Loading