The Cost of Using WindowsPrincipal(blogs.msdn.com)
submitted by
salim(780) 4 years, 1 month ago
Did you know that using WindowsPrincipal.IsInRole is ~40+% slower than doing the same work yourself? Run the code below and you’ll see … Don’t take me wrong – I do not suggest you avoid using IsInRole call; after all a single call is so fast on most computers that it is not even measurable using a timer… It’s just nice to know the cost of doing business.
|category: Tips & Tricks
|Views: 4
tags:
Tips another
Everyones tags:
Your Tags: