Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

At what level C# compiler or JIT optimize the application code?

I want to know this info to reduce my code size so I will not waste my time optimize things that will be done by compiler or JIT.

for example:

if we assume the compiler inline the call to the get function of a property so I do not have to save the return value in a local variable to avoid function call.

I want to recommend a good reference that describes what is going on?

like image 487
Ahmed Avatar asked Mar 16 '09 14:03

Ahmed


People also ask

What level is C-level?

C-level, also called the C-suite, is a term used to describe high-ranking executive titles in an organization. The letter C, in this context, stands for "chief," as in chief executive officer and chief operating officer.

Who is considered C-level?

C-level corporate jobs are the top executive positions in a company. The jobs of these high-level managers are called “C-level” because of their typical titles usually begin with “C” for “Chief,” such as Chief Executive officer (CEO).

What level is below C-level?

Employee Levels Below C-Suite:V-level management: Vice Presidents (VPs) and Senior Vice Presidents (SVPs) who report to C-level management. D-level management: Directors in various departments (e.g., Director of Sales) who report to V-level management.

How many C levels are there?

17 Common C-Level Positions. Here are some top executive positions: 1. Chief compliance officer: The chief compliance officer, or CCO, ensures that all of the company's processes and employees are operating in line with the company's predetermined policies and procedures.


1 Answers

You may want to take a look at these articles:

JIT Optimizations - (Sasha Goldshtein - CodeProject)
Jit Optimizations: Inlining I (David Notario)
Jit Optimizations: Inlining II (David Notario)

To be honest you shouldn't be worrying too much about this level of micro-detail. Let the compiler/JIT'er worry about this for you, it's better at it than you are in almost all cases. Don't get hung up on Premature Optimisation. Focus on getting your code working, then worry about optimisations later on if (a) it doesn't run fast enough, (b) you have 'size' issues.

like image 73
Kev Avatar answered Nov 15 '22 07:11

Kev