Multiple assemblies - performance lost?

后端 未结 2 751
感情败类
感情败类 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.

提交回复
热议问题