As I tried to explore source code of pipe implementation in Ivy, I figured out that in Ivy, if a pure pipe is used in multiple places in a component template, Angular will create each instance for the same pure pipe.
In View Engine, pure pipe instance is cached between usages (ref https://indepth.dev/posts/1061/the-essential-difference-between-pure-and-impure-pipes-in-angular-and-why-that-matters)
So, could you please explain me in Ivy why don't we cache pure pipe instance as implemented in View Engine?
I just made a simple comparison just FYI, the difference can be seen in console log
Thanks a lot!
https://stackblitz.com/edit/angular-ivy-pure-pipe?file=src/app/app.component.html and
https://stackblitz.com/edit/angular-view-engine-pure-pipe?file=src/app/app.component.html