edgedb
edgedb copied to clipboard
Aliases/globals have `expr` duplicated in a `Type`, and that sometimes get recompiled
In particular, it seems that both can get triggered by self._propagate_if_expr_refs, which causes some weird behavior.
Do I understand correctly:
-
Alias&Globalboth haveexpr: Expressionandtype: Typefields, and -
Typealso hasexpr: Expression
... so Expression is duplicated, which is bad for performance, schema size and _propagate_if_expr_refs reasons.
In my opinion, the problematic part is Type having expr field.