c# - Effect of unused methods and properties on library or executable -


I'm playing with creating a source code generator for C # (.NET). Will the person who generates qualities or methods never get the reason for my code to run at a slow pace? How about the "use" details for the use of libraries?

I agree to the compiler that not enough use to use in "statement", but there is no way for it to know about properties and methods because they use external applications Enter can for.

The compiler is already sufficient enough to list only the assemblies referenced in the last executable, which in fact is used to. There is no need for Bella to use assembly contexts or instructions.

The JIT compiler will only generate code for those methods which are actually called. So you will not have any machine code or due to code that will not be time overhead which is never used.

Your executable image is referenced by CLR through a memory-map file. RAM will be used only when the actual content in DLL is used by CLR. It depends on the methods that you use to deliver through the IL image. There are reasonable obstacles in this because since the JIT compiler does not reference IL, image data will not be added to RAM as well. In other words, you will lose some virtual memory space but will not consume the same amount of RAM.

If your DLL is stored in a strong name and non-trusted location then the hot boot time may be slightly delayed due to the larger file size.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -