You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 31cc3f0
Browse filesBrowse the repository at this point in the historyBrowse files
The parse cache is bypassed while any setting is scoped (#2480)
FromString cached a parse by the string object and returned it under
whatever settings were in force later, on any thread, though a literal is
rounded as it is parsed: 1e-20 parsed at the defaults stayed 1E-20 inside a
PrecisionErrorZeroRange = 1e-10 scope, where the parse is 0, and a parse made
inside a scope came back at the defaults. The cache was keyed by
ExplicitParsingOnly and DowncastingEnabled only, while the parse also reads
PrecisionErrorZeroRange, DecimalPrecisionContext,
MaxAbsNumeratorOrDenominatorValue and FloatToRationalIterCount, and computes
det, trace, dot, cross, entries and resultant under every setting those read.
The cache now holds only parses made with every setting at its default; with
a scope of any setting open in the calling flow it is neither read nor
written. SettingsState.AnyScopeOpen is one flag read until any scope has ever
been opened, then one async-local read per setting that has been scoped. The
four tables become one, and ClearFromStringCache now clears all of it (it
left the two non-downcasting tables). 0, 1 and -1 with downcasting off are
now Real, as the uncached parse gives, where the shortcut answered Integer.
Part of #2478
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments