Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

♻ Refactor dict value extraction to minimize key lookupsfastapi/utils.py#3139

Merged
tiangolo merged 2 commits intofastapi:masterfrom
ShahriyarR:unpack-value-from-update-dict
May 12, 2022
Merged

♻ Refactor dict value extraction to minimize key lookupsfastapi/utils.py#3139
tiangolo merged 2 commits intofastapi:masterfrom
ShahriyarR:unpack-value-from-update-dict

Conversation

@ShahriyarR
Copy link
Contributor

There are 3 extra key/value lookups for update_dict, it can be eliminated by unpacking value in for loop directly.

@codecov
Copy link

codecovbot commentedMay 1, 2021
edited
Loading

Codecov Report

Merging#3139 (6662091) intomaster (497e5a2) willnot change coverage.
The diff coverage is100.00%.

@@            Coverage Diff            @@##            master     #3139   +/-   ##=========================================  Coverage   100.00%   100.00%           =========================================  Files          531       531             Lines        13629     13629           =========================================  Hits         13629     13629
Impacted FilesCoverage Δ
fastapi/utils.py100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update497e5a2...6662091. Read thecomment docs.

@github-actions
Copy link
Contributor

📝 Docs preview for commit32df705 at:https://608d277e521eb71b0f16ecd0--fastapi.netlify.app

@tiangolotiangolo changed the titleunpack the value using .items() to eliminate 3 extra key lookup♻ Refactor dict value extraction to minimize key lookupsfastapi/utils.pyMay 12, 2022
@tiangolotiangoloenabled auto-merge (squash)May 12, 2022 20:37
@tiangolo
Copy link
Member

Nice, thank you! 😎🚀

@tiangolotiangolo merged commit82775f7 intofastapi:masterMay 12, 2022
JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull requestAug 20, 2022
…ls.py` (fastapi#3139)Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@ycdycdycd approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ShahriyarR@tiangolo@ycd

[8]ページ先頭

©2009-2026 Movatter.jp