Does namespace or folder structure affect build performance?

I cannot help but wonder if the spatial spaces or the folder structure of the project affect build performance. My gut says no, but it can affect compile time.

Thinking about performance always gets in the way, especially if you're a beginner. I can not help! So, I thought that I would ask my fellow game developers, whom I respect and admire.

+5
source share
4 answers

Everyone explained that unacceptable optimization is a bad idea (as it is): however, I will explain why it actually does not matter (except when you use reflection - more on that later).

Static link in code

CLR (, , MSIL - , # ) . (, ..) (, System.Runtime.Serialization.ISerializable), " " (), . - , # ( ) . , MSIL, .

MSIL - . (dll exe) . , TypeHandle, , , MemberHandle: 32- . , , call <MethodName> on <TypeName> in <Assembly> MSIL - call <MethodHandle> on <TypeHandle> in <Assembly>. 5000 , 5. : , ( , " " ) - .

, ILDASM MSIL - .

Reflection

, , : - O (n). miniscule ( ) - .

- , , .

+17

: , .

.

:

- .

, .

-.

, .

.

.

.

+19

. , .

ECMA CLI (# 335), 22 II, , ( TypeDef). , . CLI , , , , .

. , , ( , "" , ).

, (*) , - , . , .

(*) , , , , , .

+3

- ++. EG, xbox359 , . .. , blah:: blahblah:: peoplewhosefoo 38 < 000000 > , , , + < 000000 > . , . , ( ), r4 r <... > .

But you can ignore all this text and just make a 30 fps game, and then find the hot spots / bottlenecks of the code and fix it. Instead of this optimization,% 0.01.

What was actually said above in other answers.

-1
source

All Articles