February 28, 2008 01:43 by
Admin
Roger Alsing has a really cool post about how to use LINQ expressions to access private fields faster than is possible with reflection.
"I made a little benchmark where I accessed the same field a million times.
The Reflection.FieldInfo approach took 6.2 seconds to complete.
The Compiled lambda approach took 0.013 seconds to complete.
That’s quit a big difference." -- Roger
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5