File: performance.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 (12 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12

.. _astropy-modeling-performance:

Performance Tips
****************

Initializing a compound model with many constituent models can be time consuming.
If your code uses the same compound model repeatedly consider initializing it
once and reusing the model.

Consider the :ref:`performance tips <astropy-units-performance>` that apply to
quantities when initializing and evaluating models with quantities.