Pass the request ctx rather than use the globals in the app
The globals have a performance penalty which can be justified for the convinience in user code. In the app however the ctx can easily be passed through the method calls thereby reducing the performance penalty. This may affect extensions if they have subclassed the app and overridden these methods.
This commit is contained in:
parent
74d923515c
commit
d8262aa58c
5 changed files with 80 additions and 42 deletions
|
|
@ -6,7 +6,8 @@ Unreleased
|
|||
- Remove previously deprecated code. :pr:`5223`
|
||||
- Restructure the code such that the Flask (app) and Blueprint
|
||||
classes have Sans-IO bases. :pr:`5127`
|
||||
|
||||
- Pass the request ctx rather than use the globals in the app class
|
||||
methods. :pr:`5229`
|
||||
|
||||
Version 2.3.3
|
||||
-------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue