user386167
user386167

Reputation:

Multiple assemblies - performance lost?

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 may affect performance somehow. Will it? (I'm afraid I'm not that clear how assemblies are managed by the CLR.) Thank you.

Upvotes: 2

Views: 195

Answers (2)

cdhowie
cdhowie

Reputation: 168958

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.

Upvotes: 2

Reed Copsey
Reed Copsey

Reputation: 564333

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.

Upvotes: 6

Related Questions