-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we cache errorhandlers or not? #1433
Comments
|
Short summary of my position:
|
OK, my arguments rehashed:
The “ The third point is also valid: We’d need to profile a big flask app with extensive error handler usage, if such a thing exists. *this means that once the first request comes in and might populate the cache, the hierarchy of handled exceptions is frozen, so every exception type will always trigger the same handler in the future of the app lifetime. |
Based on #2267, I'm going to remove the cache. I don't expect the hierarchy to be deep enough for this to be meaningful. If there is a performance issue, the developer can always register the handler for the other exceptions manually. |
sure, since there seems to be a problem with the cache’s semantixs, go ahead! |
Cont. #1291 (comment)
The text was updated successfully, but these errors were encountered: