Skip to content

Factor-out common code. Also, optimize common cases by preallocating space on the stack.#8738

Merged
rhettinger merged 4 commits into
python:masterfrom
rhettinger:math-hypot-dist-tweaks
Aug 12, 2018
Merged

Factor-out common code. Also, optimize common cases by preallocating space on the stack.#8738
rhettinger merged 4 commits into
python:masterfrom
rhettinger:math-hypot-dist-tweaks

Conversation

@rhettinger

Copy link
Copy Markdown
Contributor

No description provided.

Also, put the result computation in an if-else chain to show
parallel structure and to eliminate the need for a "done" target.
@rhettinger rhettinger changed the title Small speed-up (approx 9ns) by preallocating space on the stack for dist() and hypot() Factor-out common code. Also, optimize common cases by preallocating space on the stack. Aug 12, 2018
@rhettinger rhettinger merged commit c630e10 into python:master Aug 12, 2018
@rhettinger rhettinger deleted the math-hypot-dist-tweaks branch August 12, 2018 01:39
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 issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants