Welcome to MSDN Blogs Sign in | Join | Help

IL Performance Optimization

Recently, an old co-worker contacted me to ask me a question about code performance. Specifically, he was emitting IL from his code and had some questions about some of the opcode usage he witnessed when viewing the IL of some compiled assemblies.  The question was based on a simple application he wrote in C#, compiled, and disassembled.  He did this to see how the C# compiler produced IL and give him clues in how he should emit IL.  The function in question was as follows:

public object GetProp(string name)
{   if (name == "X"
   {    return this.X;
   }
   return null;
}

(continue)
Published Tuesday, June 06, 2006 1:13 PM by Tobin Titus

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Interesting Finds: June 7, 2006 AM edition

Wednesday, June 07, 2006 9:33 AM by Jason Haley

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker