On Mon, 4 Jul 2022, 19:15 Arnaud Le Blanc, <arnaud...@gmail.com> wrote:

> > Important to note how `Zend/zend_compile.c` now depends on `Optimizer/`,
> > which is a potential design issue.
>
> The Optimizer was moved to `Zend/Optimizer` earlier so that in the long
> term
> it could be used by the compiler pipeline directly (rather than as part of
> caching).
>

Thanks for clarifying!

>
> There are clear benefits in reusing the Optimizer here. Duplicating or
> reimplementing live variable analysis would increase maintenance cost,
> whereas
> by reusing the Optimizer's implementation we take profit of a fast and
> well
> tested implementation.
>
> Greets,
>


This is fine, but it creates a bidirectional dependency between components
where the dependency graph was previously (in theory) acyclic.

This will become "someone else's problem" 😬

Reply via email to