Repository navigation
Conversation
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
284127d to
7cdc344
Compare
7cdc344 to
be037b0
Compare
1bbb7af to
861a400
Compare
There was a problem hiding this comment.
Removing these wrapper functions was a great change. Thanks!
There was a problem hiding this comment.
I really like the removal of the taps. The Router rxjs chain is hard enough to follow without extra operators thrown in there.
atscott
left a comment
There was a problem hiding this comment.
reviewed-for: size-tracking
|
Adding blocked label, as #40029 has been waiting to go in and should be submitted first. That PR will cause merge conflicts with a couple changes here. |
861a400 to
bea520a
Compare
|
I reverted I reverted also |
bea520a to
351c610
Compare
@martinsik - I do like the idea of the change and appreciate you bringing it up! I just want to be a little careful about it since we know that changes to the router often cause unexpected failures. How about creating a separate PR for those changes ( |
351c610 to
4ce60f7
Compare
4ce60f7 to
4bbd6c9
Compare
petebacondarwin
left a comment
There was a problem hiding this comment.
Reviewed-for: size-tracking
|
@atscott I'll try doing that in a separate PR. I think I'll need to write tests cases where the guards don't emit (eg. return |
IgorMinar
left a comment
There was a problem hiding this comment.
nice cleanup! thank you
Reviewed-for: size-tracking
|
Hi @martinsik, could you rebase this PR. I'd like to merge it early next week (or today if you're around to do the rebase). |
jelbourn
left a comment
There was a problem hiding this comment.
LGTM
Reviewed-for: size-tracking
4bbd6c9 to
115f06f
Compare
Refactor and simplifiy RxJS usage in the router package in order to reduce its size and increase performance.
115f06f to
c7dd878
Compare
|
@atscott Rebased. However, I wasn't able to check package sizes because I can't run |
Refactor and simplifiy RxJS usage in the router package in order to reduce its size and increase performance. PR Close #40290
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Other information
I refactored and simplified some RxJS usage in the Router package in order to reduce its size and increase performance. Unfortunatelly, I'm not able to verify the package size because
node ./scripts/build/build-packages-dist.jsfails on my system for some reason.The biggest changes are these:
sourceObservable.from([x, y, z])is the same asof(x, y, z)and usingof()should be faster (I'll need to test this).There are some other usecases that seem suspicious like using
from().pipe(mergeAll())should be the same as using justmerge()but I'll need to be able to runbuild-packages-dist.jsto make sure it generates smaller package.Bundle size
main-es2015incli-hello-world-lazy-rollupintegration test dropped from expected218507to217931.Bundle size
main-es2015incli-hello-world-lazyintegration test dropped from expected241837to241260.So both bundles are cca 580 B smaller.
I'm not sure about the removed records in
bundle.golden_symbols.json. It has probably something to do with this change https://github.com/angular/angular/pull/40290/files#diff-1706bbbdd4dda445171e80023d67b54f1aa77a457d6b81b6815239113fd34decR62-R66 but I'm not sure why.I didn't make any change to existing tests because this should not break anything.