Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
AnswerRe: WMI Win32_Product speed.... Pin
Eddy Vluggen10-Apr-10 22:29
professionalEddy Vluggen10-Apr-10 22:29 
GeneralRe: WMI Win32_Product speed.... Pin
Jacob Dixon11-Apr-10 5:05
Jacob Dixon11-Apr-10 5:05 
GeneralRe: WMI Win32_Product speed.... Pin
Eddy Vluggen11-Apr-10 5:15
professionalEddy Vluggen11-Apr-10 5:15 
GeneralRe: WMI Win32_Product speed.... Pin
Jacob Dixon11-Apr-10 5:18
Jacob Dixon11-Apr-10 5:18 
GeneralRe: WMI Win32_Product speed.... Pin
Eddy Vluggen11-Apr-10 5:24
professionalEddy Vluggen11-Apr-10 5:24 
AnswerRe: WMI Win32_Product speed.... Pin
Moreno Airoldi10-Apr-10 22:37
Moreno Airoldi10-Apr-10 22:37 
GeneralRe: WMI Win32_Product speed.... Pin
Jacob Dixon11-Apr-10 5:07
Jacob Dixon11-Apr-10 5:07 
GeneralRe: WMI Win32_Product speed.... Pin
harold aptroot11-Apr-10 10:41
harold aptroot11-Apr-10 10:41 
GeneralRe: WMI Win32_Product speed.... Pin
Jacob Dixon11-Apr-10 12:11
Jacob Dixon11-Apr-10 12:11 
NewsWhirlwind Screencasts Explore New Features in C#4 Pin
brucedkyle10-Apr-10 13:10
brucedkyle10-Apr-10 13:10 
GeneralRe: Whirlwind Screencasts Explore New Features in C#4 Pin
Not Active10-Apr-10 14:48
mentorNot Active10-Apr-10 14:48 
GeneralRe: Whirlwind Screencasts Explore New Features in C#4 Pin
Mycroft Holmes10-Apr-10 21:58
professionalMycroft Holmes10-Apr-10 21:58 
QuestionUsing inline code/macros Pin
Trollslayer10-Apr-10 11:19
mentorTrollslayer10-Apr-10 11:19 
AnswerRe: Using inline code/macros Pin
Not Active10-Apr-10 11:25
mentorNot Active10-Apr-10 11:25 
GeneralRe: Using inline code/macros Pin
Trollslayer10-Apr-10 11:42
mentorTrollslayer10-Apr-10 11:42 
GeneralRe: Using inline code/macros Pin
harold aptroot10-Apr-10 12:03
harold aptroot10-Apr-10 12:03 
GeneralRe: Using inline code/macros Pin
Trollslayer10-Apr-10 12:13
mentorTrollslayer10-Apr-10 12:13 
GeneralRe: Using inline code/macros Pin
harold aptroot10-Apr-10 12:52
harold aptroot10-Apr-10 12:52 
There are some funny restrictions so I guess I should list them.. for completeness and all
Methods are not inlined if (but not only if):
- it takes an argument which is a struct (build-in ValuesTypes such as Int32 do not count)
- it contains any exceptions handling (throwing is OK though)
- it is virtual (even if sealed - future versions may fix)
- it contains control flow less simple than a single if/else (for/while/do/switch/multiple if's)
- it is bigger than 32 bytes of IL
- random other reasons or a MethodImpl(MethodImplOptions.NoInlining) attribute
Methods are inlined whenever the JIT compiler feels like it and it wouldn't break any of the above rules
All non-static methods in a struct take a struct as implied first argument (this) and are therefore not considered for inlining (worst restriction, IMO).
Short-circuiting operators and ?: count towards the limit of 1 if.
Method calls are OK
GeneralRe: Using inline code/macros Pin
Trollslayer10-Apr-10 13:26
mentorTrollslayer10-Apr-10 13:26 
AnswerRe: Using inline code/macros Pin
Luc Pattyn10-Apr-10 12:10
sitebuilderLuc Pattyn10-Apr-10 12:10 
GeneralRe: Using inline code/macros Pin
DaveyM6910-Apr-10 12:42
professionalDaveyM6910-Apr-10 12:42 
GeneralRe: Using inline code/macros Pin
PIEBALDconsult10-Apr-10 17:05
mvePIEBALDconsult10-Apr-10 17:05 
GeneralRe: Using inline code/macros Pin
DaveyM6911-Apr-10 3:05
professionalDaveyM6911-Apr-10 3:05 
GeneralRe: Using inline code/macros Pin
PIEBALDconsult10-Apr-10 16:55
mvePIEBALDconsult10-Apr-10 16:55 
GeneralRe: Using inline code/macros Pin
Luc Pattyn10-Apr-10 21:50
sitebuilderLuc Pattyn10-Apr-10 21:50 

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.