jdaviz
jdaviz copied to clipboard
_set_axes_lim called too many times when Imviz adjusts more than one limit at once
https://github.com/spacetelescope/jdaviz/blob/0655d4a43b82323042db87a74d352ecf0590d5fc/jdaviz/core/freezable_state.py#L70-L71
_set_axes_lim
called too many times when Imviz adjusts more than one limit at once. Coupled with WCS look-ups every time it is called, this can lead to performance issues. Ideally, it should only be called once every time the viewer needs adjusting, taking into account all affected limits at once. However, given the async nature of things, no simple solution immediately jumps to mind.
xref #2649