Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #255 from dstansby/perf-doc
Browse files Browse the repository at this point in the history
Improve performance docs
  • Loading branch information
dstansby authored Oct 22, 2020
2 parents a256572 + 88d1e66 commit 6ffb03a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
8 changes: 8 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ pfsspy can be installed from PyPi using
pip install pfsspy
This will install pfsspy and all of its dependencies. In addition to the core
dependencies, there are two optional dependencies (numba, streamtracer) that
improve code performance. These can be installed with

.. code::
pip install pfsspy[performance]
Citing
------

Expand Down
13 changes: 8 additions & 5 deletions doc/source/performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ Improving performance

numba
~~~~~
pfsspy automatically detects an installation of
`numba <https://numba.pydata.org/>`_, which compiles
pfsspy automatically detects an installation of `numba`_, which compiles
some of the numerical code to speed up pfss calculations. To enable this
simply `install numba <http://numba.pydata.org/numba-doc/latest/user/installing.html>`_
and use pfsspy as normal.
simply `install numba`_ and use pfsspy as normal.

Streamline tracing
~~~~~~~~~~~~~~~~~~
pfsspy has two streamline tracers: a pure python `pfsspy.tracing.PythonTracer`
and a FORTRAN `pfsspy.tracing.FortranTracer`. The FORTRAN version is
significantly faster.
significantly faster, using the `streamtracer`_ package.


.. _numba: https://numba.pydata.org
.. _install numba: http://numba.pydata.org/numba-doc/latest/user/installing.html
.. _streamtracer: https://github.com/dstansby/streamtracer
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ test =
pytest-cov
streamtracer
reproject
performance =
numba
streamtracer

# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
Expand Down

0 comments on commit 6ffb03a

Please sign in to comment.