File: performance.inc.rst

package info (click to toggle)
astropy 5.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 41,972 kB
  • sloc: python: 219,331; ansic: 147,297; javascript: 13,556; lex: 8,496; sh: 3,319; xml: 1,622; makefile: 185
file content (14 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.. note that if this is changed from the default approach of using an *include*
   (in index.rst) to a separate performance page, the header needs to be changed
   from === to ***, the filename extension needs to be changed from .inc.rst to
   .rst, and a link needs to be added in the sub-package toctree

.. _astropy-convolution-performance:

Performance Tips
================

The :func:`~astropy.convolution.convolve` function is best suited to small
kernels, and can become very slow for larger kernels. In this case, consider
using :func:`~astropy.convolution.convolve_fft` (though note that this function
uses more memory, and consider the different padding options).