Avatar for the strawberry-graphql user
strawberry-graphql
strawberry
BlogDocsChangelog

Performance History

Latest Results

Patch _inject_default_for_maybe_annotations
jacobmoshipco:patch-maybe-default-injection
1 day ago
Release 🍓 0.281.0
main
3 days ago
⚡️ Speed up function `should_resolve_list_connection_edges` by 46% (#3976) * ⚡️ Speed up function `should_resolve_list_connection_edges` by 46% Here is a rewritten, much faster version of your function. The efficiency improvement focuses on two major issues in the profile. - The **nested for-loops** iterating through selections and recursing with a function that checks every node. This was incurring deep call overhead and duplicate checks. - The **recursive _check_selection** can be replaced with an iterative approach using a stack to avoid deep Python recursion and to exit immediately on the first match. **Summary of changes:** - Eliminated all recursion by rewriting as a single iterative DFS using a stack, minimizing Python frame overhead. - Only a single scan through the selection tree with immediate exit on finding a match (`edges`/`pageInfo`). - Preserved the public API and all comments as required. - No repeated checks for the same node, no walk of already-matched subtrees. **You can expect** a substantial runtime improvement, especially with deeply nested or large queries, plus removal of risk of hitting the recursion limit. * Apply suggestions from code review * Update strawberry/relay/utils.py Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --------- Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
main
9 days ago
Add release file
DoctorJohn:remove-ws-only-operation-logging
10 days ago
Release 🍓 0.280.0
main
10 days ago

Active Branches

Patch default injection for annotated fields
last run
1 day ago
#3985
CodSpeed Performance Gauge
0%
last run
19 days ago
#3965
CodSpeed Performance Gauge
0%
last run
24 days ago
#3408
CodSpeed Performance Gauge
0%
© 2025 CodSpeed Technology
Home Terms Privacy Docs