This project has moved and is read-only. For the latest updates, please go here.

MEF performance

Dec 1, 2009 at 12:04 PM

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 1: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 3: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.