Quantcast
Channel: Björn Carlsson – blog.
Viewing all articles
Browse latest Browse all 12

Performance nightmare

$
0
0

22 to 0.3 seconds! I found a simple solution to a very common problem. While profiling I found that remove in this little method took a lot of the time. public void MovePropertyFirst(IProperty property) { properties.Remove(property); properties.Insert(0, property); } The reason was, that it’s time consuming to compare the properties by equality, for complex types. […]

The post Performance nightmare appeared first on blog..


Viewing all articles
Browse latest Browse all 12

Trending Articles