Add a totalBehavior="404NotFound" option to the sizelimits configuration
Allow a totalBehavior="404NotFound" setting to the sizelimits config. This would allow the server to simply issue a 404 instead of generating an exception. Returning this 404 would be more efficient on the server side than throwing an exception.
4
votes
Wes
shared this idea
This behavior would not make sense or offer any performance improvement.
-
Actually, 404s are generally caused by exceptions, and in this instance, an exception would be the only exit path.
Other than saving 1/20th of a millisecond, would there be another benefit to this behavior?
http://stackoverflow.com/questions/161942/how-slow-are-net-exceptions