Skip to content

refactor(core): convert ProfilerEvent enum to const object#68152

Open
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:ProfilerEvent-const-enum
Open

refactor(core): convert ProfilerEvent enum to const object#68152
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:ProfilerEvent-const-enum

Conversation

@JeanMeche
Copy link
Copy Markdown
Member

@JeanMeche JeanMeche commented Apr 12, 2026

TS Enums usually bear a weight penalty because of the 2-way mapping they create.
In the case of ProfilerEvent, it is only as a mapped object so we can convert it to a const object without losing any functionality.

@angular-robot angular-robot bot added area: core Issues related to the framework runtime requires: TGP This PR requires a passing TGP before merging is allowed labels Apr 12, 2026
@ngbot ngbot bot added this to the Backlog milestone Apr 12, 2026
TS Enums usually bear a weight penalty because of the 2-way mapping they create.
In the case of `ProfilerEvent`, it is only as a mapped object so we can convert it to a const object without losing any functionality.
@JeanMeche JeanMeche force-pushed the ProfilerEvent-const-enum branch from 4d7fcd1 to 1b18370 Compare April 12, 2026 13:49
@JeanMeche JeanMeche changed the title refactor(core): Inline private ProfilerEvent. refactor(core): convert ProfilerEvent enum to const object Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime requires: TGP This PR requires a passing TGP before merging is allowed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant