Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/cython/fib/fib-exercise/fib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function (named so we can distinguish it from the sped-up versions of `fib()`).

For baseline timings, lets time its performance in the IPython interpreter:

$ ipython
[...]
$ ipython --no-banner

In [1]: from pyfib import pyfib

In [2]: %timeit pyfib(10)
Expand All @@ -34,8 +34,8 @@ directory.
2. You can load this extension module in an interactive interpreter (here,
IPython), like so:

$ ipython
[...]
$ ipython --no-banner

In [1]: from fib import fib

In [2]: fib(10)
Expand Down
8 changes: 4 additions & 4 deletions examples/cython/fib/fib-exercise/fib_solution.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function (named so we can distinguish it from the sped-up versions of `fib()`).

For baseline timings, lets time its performance in the IPython interpreter:

$ ipython
[...]
$ ipython --no-banner

In [1]: from pyfib import pyfib

In [2]: %timeit pyfib(10)
Expand All @@ -34,8 +34,8 @@ directory.
2. You can load this extension module in an interactive interpreter (here,
IPython), like so:

$ ipython
[...]
$ ipython --no-banner

In [1]: from fib import fib

In [2]: fib(10)
Expand Down
8 changes: 4 additions & 4 deletions examples/cython/fib/fib-exercise/pyfib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

For baseline timings, lets time its performance in the IPython interpreter:

$ ipython
[...]
$ ipython --no-banner

In [1]: from pyfib import pyfib

In [2]: %timeit pyfib(10)
Expand All @@ -34,8 +34,8 @@
2. You can load this extension module in an interactive interpreter (here,
IPython), like so:

$ ipython
[...]
$ ipython --no-banner

In [1]: from fib import fib

In [2]: fib(10)
Expand Down
8 changes: 4 additions & 4 deletions examples/cython/fib/fib-exercise/setup_fib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

For baseline timings, lets time its performance in the IPython interpreter:

$ ipython
[...]
$ ipython --no-banner

In [1]: from pyfib import pyfib

In [2]: %timeit pyfib(10)
Expand All @@ -34,8 +34,8 @@
2. You can load this extension module in an interactive interpreter (here,
IPython), like so:

$ ipython
[...]
$ ipython --no-banner

In [1]: from fib import fib

In [2]: fib(10)
Expand Down
8 changes: 4 additions & 4 deletions examples/cython/fib/fib-exercise/setup_fib_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

For baseline timings, lets time its performance in the IPython interpreter:

$ ipython
[...]
$ ipython --no-banner

In [1]: from pyfib import pyfib

In [2]: %timeit pyfib(10)
Expand All @@ -34,8 +34,8 @@
2. You can load this extension module in an interactive interpreter (here,
IPython), like so:

$ ipython
[...]
$ ipython --no-banner

In [1]: from fib import fib

In [2]: fib(10)
Expand Down
Binary file removed pdf/02_Speeding_Python.pdf
Binary file not shown.
Loading