SIGN IN SIGN UP

optim: cache qmap values as tuples (#4552)

The cached optimizer qmaps are shared by all callers. Return tuples so
the cached values cannot be mutated while other threads are building qmap
tensors.

Assisted-by: Claude Opus 4.7

Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
N
Neil Schemenauer committed
bfbc842047452e13e3292646656b307f5947e815
Parent: e98d7a0
Committed by GitHub <noreply@github.com> on 7/10/2026, 2:46:32 PM