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
Don't copy when resolving aliases in try_modtypes (#143)
We were calling `expand_module_alias` to get the unstrengthened,
non-lazy type (potential deep copy), then checking whether it's an ident
and then strengthening it, thus throwing most of it away. This patch
avoids doing that by working directly on the lazy representation. This
substantially reduces the peak heap size (and improves compile times,
albeit to a lesser degree) in some cases.
Note that ocaml-flambda/ocaml-jst#119 changes
this area significantly so I didn't want to refactor too much here.
Co-authored-by: Roman Leshchinskiy <[email protected]>
0 commit comments