Error!
Success!

The Cost of Using WindowsPrincipal

0
kicks

The Cost of Using WindowsPrincipal  (Unpublished)

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.


Kicked By:
Drop Kicked By: