Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my_power is really slow. #2

Open
dharhas opened this issue Jul 16, 2016 · 0 comments
Open

my_power is really slow. #2

dharhas opened this issue Jul 16, 2016 · 0 comments

Comments

@dharhas
Copy link
Collaborator

dharhas commented Jul 16, 2016

The my_power implementation is really slow, I think we should replace it with something faster.

`In [3]: from sprint_tutorial.compute import my_power

In [4]: %timeit my_power(2.5, 8)
The slowest run took 4.27 times longer than the fastest. This could mean that an intermediate result is being cached.
1000000 loops, best of 3: 1.62 µs per loop`

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

No branches or pull requests

1 participant