Uh oh!
There was an error while loading. Please reload this page.
Use literal dict instead of calling dict() in Airflow core - #33762
Conversation
potiuk
commented
Aug 26, 2023
Hmmm. Not so sure about this one . I actually like better the dict variant. What's the reason you want to change it @hussein-awala ? (Not strongly opposing - but wanted to know the reasoning). |
AFAIK, |
potiuk
commented
Aug 26, 2023
Yeah. Performance is noticeably faster. Fine for me Literal is much faster, since it uses optimized BUILD_MAP and STORE_MAP opcodes rather than generic CALL_FUNCTION: |
(cherry picked from commit 1e81ed1)
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.