The fix for this is now available in the 15apr2026 update for Stata 19 and StataNow 19.
In help whatsnew for 15apr2026, see item 4.
In help whatsnew for 15apr2026, see item 4.
4. Stata's tracking of temporary matrices has been improved. The number of global matrices no longer affects the time Stata takes to remove temporary matrices created within an exiting program.

Comment