High-Performance Virtual Constructors(mobilecommerceonline.com)
submitted by
_BK_(20) 2 years, 5 months ago
It is very convenient to create instances of derived types based on configuration files. Problems arise when one tries to use generics to do this, however. The reason is that the compiler surreptitiously uses reflection-based code behind the scenes, greatly diminishing performance. This technique will show you how to use some LINQ features to eliminate the performance hits, increasing the speed of your virtual constructor by 16,000%.
|category: C#
|Views: 18
tags:
C# another
Everyones tags:
Your Tags: