Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

power: slight optimization #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthewleon
Copy link

We needn't check p <= 0 on every application of go.

@matthewleon
Copy link
Author

I've amended this with another little trick: the order of the branches in go now prioritizes the common case.

@matthewleon
Copy link
Author

Weirdly, benchmarking is showing this to actually be way slower. No idea why. Will post if/when I get this working to my satisfaction.

@matthewleon
Copy link
Author

Added an optimization for the TC dictionary lookup. In my informal benchmarks, these changes result in a small performance improvement, about 2%.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant