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 e606ca2
Browse filesBrowse the repository at this point in the historyBrowse files
Merge unions of constant arrays with many keys instead of degrading
processArrayTypes() numbered every distinct constant key with a power of
two and degraded the whole union to a general array once the counter
left the int range - a hidden cap of 62 distinct keys. The numbering's
consumer (per-array bitmask bucketing) was removed in 1cdd9ba, so all
that survived was the accidental degradation, which also made large
unions behave differently from small ones (the >62-key path collapsed
same-key-set shapes losslessly via reduceArrays(false), while the small
path preserves them as tagged unions).
Keep a plain seen-key set for deduplication and let unions of constant
arrays of any size take the tagged-union-preserving path; oversized
unions still degrade via ConstantArrayTypeBuilder::ARRAY_COUNT_LIMIT in
optimizeConstantArrays().
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CGhnJQpUWRRpg6H5LuWJkA
0 commit comments