← 返回首页
GH-100485: Convert from Fast2Sum to 2Sum by rhettinger · Pull Request #100836 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

GH-100485: Convert from Fast2Sum to 2Sum#100836

Merged
rhettinger merged 4 commits into
python:mainfrom
rhettinger:sumprod_2sum
Jan 8, 2023
Merged

GH-100485: Convert from Fast2Sum to 2Sum#100836
rhettinger merged 4 commits into
python:mainfrom
rhettinger:sumprod_2sum

Conversation

rhettinger commented Jan 8, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Baseline for vector size 100 is 692 nsec. With 2Sum, it is 659 nsec.

Also, converted dl_zero from a function to a constant.

rhettinger added performance Performance or resource usage skip news labels Jan 8, 2023
rhettinger changed the title bpo-100485: Convert from Fast2Sum to 2Sum GH-100485: Convert from Fast2Sum to 2Sum Jan 8, 2023
rhettinger merged commit df3851f into python:main Jan 8, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Footer

© 2026 GitHub, Inc.