I went into a refactor from a full library import using a fluid interface on Observable to the new pipe interface hoping for a big reduction in payload size. Unfortunately that didn't come to pass. I'm recording my findings so they can be used as input to refactoring in version 6.
The main dependents using RxJs are Angular, Angular Material & NGRX/Store. The full library import came in at 860Kb, after the refactor RxJs came in at 591.75 Kb. I had expected 200 Kb. An arbitrary expectation as I don't know the code style, and the sizes are unminified.
To reason about the amount of code to expect I went through and identified imports. Our app uses
I'm bit confused about description - with 5.5's pipeable, it allows selective import / tree shaking per configuration. Is this saying about ng have its own dependency so user application can't control?
I went into a refactor from a full library import using a fluid interface on Observable to the new pipe interface hoping for a big reduction in payload size. Unfortunately that didn't come to pass. I'm recording my findings so they can be used as input to refactoring in version 6.
The main dependents using RxJs are Angular, Angular Material & NGRX/Store. The full library import came in at 860Kb, after the refactor RxJs came in at 591.75 Kb. I had expected 200 Kb. An arbitrary expectation as I don't know the code style, and the sizes are unminified.
To reason about the amount of code to expect I went through and identified imports. Our app uses
Other imports are listed below.
RxJS version: 5.5.5
Project Dependencies to reproduce:
Expected behavior:
Actual behavior:
<30% payload size reduction
Library imports identified