Skip to content

Remove forward references by using PEP 649 deferred evaluation - #931

Merged
padix-key merged 1 commit into
biotite-dev:mainfrom
padix-key:no-forward-ref
Jul 20, 2026
Merged

Remove forward references by using PEP 649 deferred evaluation#931
padix-key merged 1 commit into
biotite-dev:mainfrom
padix-key:no-forward-ref

Conversation

@padix-key

Copy link
Copy Markdown
Member

This PR replaces forward references by standard type annotations by using the deferred evaluation of type annotations (PEP 649).

@codspeed-hq

codspeed-hq Bot commented Jul 17, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 12.06%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 2 improved benchmarks
✅ 101 untouched benchmarks
⏩ 14 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
benchmark_match_kmer_selection[KmerTable-None] 278.3 µs 246 µs +13.15%
benchmark_match[KmerTable-None] 327 µs 294.6 µs +10.99%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing padix-key:no-forward-ref (94c62a8) with main (1fa1b70)

Open in CodSpeed

Footnotes

  1. 14 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@padix-key
padix-key merged commit b6127ed into biotite-dev:main Jul 20, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant