Skip to content

Commit db5b261

Browse files
committed
perf(size): drop the two scheduler micro-edits; they moved brotli up
Measured against next 404d06a, `lane ?? this` and `includes` saved minified bytes but moved hello world's brotli from 9,978 B to 9,994 B (layout). Without them hello world and render + one signal are 0 B brotli; the fix costs +7 B minified there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
1 parent 9bca7bf commit db5b261

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/signals/src/core/scheduler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export function txOf(n: Signal<any> | Computed<any>): Transaction {
390390
* it has landed. */
391391
export function liveTx(t: Transaction): Transaction | null {
392392
t = resolveTx(t);
393-
return transactions.includes(t) ? t : null;
393+
return transactions.indexOf(t) !== -1 ? t : null;
394394
}
395395
export function resolveTx(t: Transaction): Transaction {
396396
while (t._into !== null) t = t._into;
@@ -1149,7 +1149,7 @@ export class GlobalQueue implements IQueue {
11491149
// the frame (which may park). A lane pass that read the frame's own
11501150
// staging is the frame's (`recompute` passes null): its run waits with
11511151
// the frame.
1152-
if (type) (lane ?? this)._queues[type - 1].push(fn);
1152+
if (type) (lane !== null ? lane : this)._queues[type - 1].push(fn);
11531153
schedule();
11541154
}
11551155
/** Status reaching the root: pending is absorbed (the root mount defers —

0 commit comments

Comments
 (0)