Skip to content

Commit ce3a9a2

Browse files
pkozlowski-opensourcekirjs
authored andcommitted
refactor(core): remove performance mark feature for signals (#59991)
Remove the performance mark feature from the Angular signal impl so more code can be shared between primitives and other frameworks. PR Close #59991
1 parent ef17371 commit ce3a9a2

7 files changed

Lines changed: 0 additions & 8 deletions

File tree

packages/core/src/render3/reactivity/computed.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export interface CreateComputedOptions<T> {
3131
* Create a computed `Signal` which derives a reactive value from an expression.
3232
*/
3333
export function computed<T>(computation: () => T, options?: CreateComputedOptions<T>): Signal<T> {
34-
performanceMarkFeature('NgSignals');
3534
const getter = createComputed(computation);
3635
if (options?.equal) {
3736
getter[SIGNAL].equal = options.equal;

packages/core/src/render3/reactivity/effect.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ export function effect(
157157
return microtaskEffect(effectFn, options);
158158
}
159159

160-
performanceMarkFeature('NgSignals');
161160
ngDevMode &&
162161
assertNotInReactiveContext(
163162
effect,

packages/core/src/render3/reactivity/linked_signal.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ export function linkedSignal<S, D>(
5555
| (() => D),
5656
options?: {equal?: ValueEqualityFn<D>},
5757
): WritableSignal<D> {
58-
performanceMarkFeature('NgSignals');
59-
6058
if (typeof optionsOrComputation === 'function') {
6159
const getter = createLinkedSignal<D, D>(
6260
optionsOrComputation,

packages/core/src/render3/reactivity/microtask_effect.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ export function microtaskEffect(
121121
effectFn: (onCleanup: EffectCleanupRegisterFn) => void,
122122
options?: CreateEffectOptions,
123123
): EffectRef {
124-
performanceMarkFeature('NgSignals');
125124
ngDevMode &&
126125
assertNotInReactiveContext(
127126
effect,

packages/core/src/render3/reactivity/signal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ export interface CreateSignalOptions<T> {
7676
* Create a `Signal` that can be set or updated directly.
7777
*/
7878
export function signal<T>(initialValue: T, options?: CreateSignalOptions<T>): WritableSignal<T> {
79-
performanceMarkFeature('NgSignals');
8079
const signalFn = createSignal(initialValue) as SignalGetter<T> & WritableSignal<T>;
8180
const node = signalFn[SIGNAL];
8281
if (options?.equal) {

packages/core/test/bundling/forms_reactive/bundle.golden_symbols.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,6 @@
537537
"optionsReducer",
538538
"parseAndConvertInputsForDefinition",
539539
"parseAndConvertOutputsForDefinition",
540-
"performanceMarkFeature",
541540
"pickAsyncValidators",
542541
"pickValidators",
543542
"platformBrowser",

packages/core/test/bundling/forms_template_driven/bundle.golden_symbols.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@
526526
"optionsReducer",
527527
"parseAndConvertInputsForDefinition",
528528
"parseAndConvertOutputsForDefinition",
529-
"performanceMarkFeature",
530529
"pickAsyncValidators",
531530
"pickValidators",
532531
"platformBrowser",

0 commit comments

Comments
 (0)