Angular Pipe Performance — Build a blazzzingly fast Angular pipe ⚡️

Looking to make your Angular pipes perform like a dashing cheetah? Then here’s how to create a fast, highly-performant Angular pipe. ✨✨✨

Daniel Kreider
ITNEXT
Published in
3 min readApr 5, 2021

--

Angular pipes hardly ever cause performance problems worth bating an eye at.

And just to make sure you’re aware, it’s much more common that an Angular application’s performance can be drastically improved by tweaking change detection options or making sure that ngFor is using a trackBy function.

But in any case, if you’re looking to shave a few milli-seconds and squeeze everything you can and pull all the levers you got to make your Angular application perform, then this is how to make your Angular pipes run really fast. 💥

Before we dive to deep let’s clarify a few things.

None of what I’m going to teach you in this article will be worthwhile if your Angular pipes are not pure functions. This means that your Angular pipes always return the same value when given the same input. And if you’re a smart Angular developer, which I’m sure you are, then you’re Angular pipes already use pure functions.

Yes buddy, I want to make you a smart

--

--