Click here to Skip to main content
15,887,214 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralObject Memory Space Pin
CBoland16-Jun-03 9:09
CBoland16-Jun-03 9:09 
GeneralRe: Object Memory Space Pin
Daniel Turini17-Jun-03 10:07
Daniel Turini17-Jun-03 10:07 
GeneralRe: Object Memory Space Pin
Aravinthan25-Jun-03 3:31
Aravinthan25-Jun-03 3:31 
GeneralFORM VB 6 to VB.net Pin
Jonavis13-Jun-03 11:21
Jonavis13-Jun-03 11:21 
GeneralIL Optimization Pin
leppie13-Jun-03 10:02
leppie13-Jun-03 10:02 
GeneralRe: IL Optimization Pin
Daniel Turini13-Jun-03 10:22
Daniel Turini13-Jun-03 10:22 
GeneralRe: IL Optimization Pin
leppie13-Jun-03 10:38
leppie13-Jun-03 10:38 
GeneralRe: IL Optimization Pin
Daniel Turini13-Jun-03 10:53
Daniel Turini13-Jun-03 10:53 
leppie wrote:
So those 2 are == ? If I write IL manually, can I write it either way then?
What triggered me to ask this , is that method overhead does add up, even though its only about 5ns a call, but call that 100,000 times and it makes sense to inline a method, if possible. It appears the JIT is NOT inlining small methods eg operater overloads. Is there a way to force this without having to manually edit the IL?

==? In theory, yes.
IIRC, the JIT inlines any method with less than 32 IL bytes.
One thing to notice is that the JIT can't inline a virtual method, because the proper method to call is only known at the time of the call, and can change from call to call. BTW, virtual method calls are very expensive.
If you need such degree of control, I suggest you that, before going into ILASM, try managed C++, at least for the critical part. It's not that beautiful, but you still have templates and some form of inline control.
And if the "inline" keyword doesn't help, you can always resort to macros Smile | :)


ORACLE One Real A$#h%le Called Lary Ellison
GeneralRe: IL Optimization Pin
leppie13-Jun-03 11:08
leppie13-Jun-03 11:08 
GeneralRe: IL Optimization Pin
Daniel Turini13-Jun-03 11:32
Daniel Turini13-Jun-03 11:32 
GeneralRe: IL Optimization Pin
leppie13-Jun-03 12:04
leppie13-Jun-03 12:04 
GeneralIIS Permissions and .NET Framework Pin
Roger Wright13-Jun-03 8:47
professionalRoger Wright13-Jun-03 8:47 
Generalscrolling without a scrollbar Pin
mindfuck13-Jun-03 4:26
mindfuck13-Jun-03 4:26 
GeneralSystem.Windows.Forms.Panel AutoScroll Pin
Anonymous11-Jun-03 12:50
Anonymous11-Jun-03 12:50 
GeneralQuestion about UTF8 Encoding Pin
NorthWoodsman10-Jun-03 17:06
NorthWoodsman10-Jun-03 17:06 
GeneralRe: Question about UTF8 Encoding Pin
Laimis13-Jun-03 5:19
Laimis13-Jun-03 5:19 
QuestionIs that a way to let your 1.1 application freely running on all kinds of framework? Pin
fftongzhi10-Jun-03 16:54
fftongzhi10-Jun-03 16:54 
AnswerRe: Is that a way to let your 1.1 application freely running on all kinds of framework? Pin
Shaun Wilde10-Jun-03 21:03
Shaun Wilde10-Jun-03 21:03 
General.NET based portals Pin
Shaun Wilde10-Jun-03 3:41
Shaun Wilde10-Jun-03 3:41 
QuestionHow To: Report on inter-class dependancies?? Pin
jboy9-Jun-03 15:40
jboy9-Jun-03 15:40 
QuestionBitmapeditor? Pin
Stan Shannon9-Jun-03 2:45
Stan Shannon9-Jun-03 2:45 
GeneralMust be simple question for .NET interop gurus here... Pin
igor19608-Jun-03 20:01
igor19608-Jun-03 20:01 
GeneralRe: Must be simple question for .NET interop gurus here... Pin
Shaun Wilde10-Jun-03 3:36
Shaun Wilde10-Jun-03 3:36 
GeneralRe: Must be simple question for .NET interop gurus here... Pin
igor196010-Jun-03 17:01
igor196010-Jun-03 17:01 
GeneralRe: Must be simple question for .NET interop gurus here... Pin
Shaun Wilde10-Jun-03 20:59
Shaun Wilde10-Jun-03 20:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.