This project has moved. For the latest updates, please go here.

MEF performance

Dec 1, 2009 at 11:04 AM

Good day,

I have a question regarding MEF performace. I searched "Discussions" and found following topic:

Since this topic is dated September 2008, i assumed that things have changed.

Are there any guidelines for performance improvement?


Mita Cokic

Dec 2, 2009 at 12:22 PM

I have measured performance of calling methods using MEF and without it and it seems that the speed is identical.


Mita Cokic

Dec 2, 2009 at 2:54 PM

Performance of using MEF is very good. You might want to check the initial discovery depending on your scenario. It's not slow, it's just not fee. Of course that just happens once, and its often at a time that a few extra milliseconds isn't a problem, but if you are opening a thousand assemblies, you'll probably feel it. The assemblies are not loaded, but the files are opened to read the manifest. With MEF extensibility, you could potentially create a cache for loading.