Multiple assemblies - performance lost?

后端 未结 2 749
感情败类
感情败类 2021-01-21 11:12

I have a list of System.IO.Ports.SerialPort objects in one assembly, and I plan to handle the Data_Receieved event from another assembly.

I wonder if this m

相关标签:
2条回答
  • 2021-01-21 11:59

    No. When it comes to performance, which assembly types are located in doesn't really matter. The JIT is going to emit the same native code. The only performance penalty would be when initially loading the assemblies, and it's going to be negligible.

    0 讨论(0)
  • 2021-01-21 12:10

    There should be no impact on performance once the assemblies are loaded.

    The only potential impact would be a (very slight) hit to load times. When the assemblies are loaded by the CLR, there is some work involved in loading each assembly. This is generally small enough that it's not noticable, however.

    0 讨论(0)
提交回复
热议问题