Skip to content

perf(ivy): avoid unnecessary i18n pass while processing a template - #33284

Closed
AndrewKushnir wants to merge 1 commit into
angular:masterfrom
AndrewKushnir:avoid_i18n_second_pass
Closed

AndrewKushnir wants to merge 1 commit into
angular:masterfrom
AndrewKushnir:avoid_i18n_second_pass

Conversation

@AndrewKushnir

Copy link
Copy Markdown
Contributor

Prior to this commit, we always invoked second i18n pass (in case whitespace removal is on, which is a default), even if a given template doesn't contain i18n information. Now we store a flag (that indicates presence of i18n information in a template) during first i18n pass and use it to check whether second pass is needed.

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added area: i18n Issues related to localization and internationalization comp: ivy labels Oct 21, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Oct 21, 2019
@AndrewKushnir
AndrewKushnir force-pushed the avoid_i18n_second_pass branch from 00a56cc to c5ceeac Compare October 22, 2019 00:27
Prior to this commit, we always invoked second i18n pass (in case whitespace removal is on, which is a default), even if a given template doesn't contain i18n information. Now we store a flag (that indicates presence of i18n information in a template) during first i18n pass and use it to check whether second pass is needed.
@AndrewKushnir
AndrewKushnir force-pushed the avoid_i18n_second_pass branch from c5ceeac to d2f7f96 Compare October 22, 2019 00:28
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release and removed state: WIP labels Oct 22, 2019
@AndrewKushnir
AndrewKushnir marked this pull request as ready for review October 22, 2019 00:54
@AndrewKushnir
AndrewKushnir requested review from a team October 22, 2019 00:54

@petebacondarwin petebacondarwin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I got all excited when I saw the title of this PR as I thought you might have removed the second pass altogether :-) since that would have fixed the ICU bug I am working on.

@AndrewKushnir

Copy link
Copy Markdown
Contributor Author

@AndrewKushnir AndrewKushnir added action: presubmit The PR is in need of a google3 presubmit and removed action: presubmit The PR is in need of a google3 presubmit labels Oct 22, 2019
@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 22, 2019
@matsko matsko closed this in 7f7dc7c Oct 22, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: i18n Issues related to localization and internationalization cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants