@zakkster/lite-signal 1.3.0-rc → 1.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -43
- package/llms.txt +49 -37
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,21 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
## 4th of 15 on the community reactivity benchmark -- and the only zero-GC engine in the field
|
|
17
17
|
|
|
18
|
-
On the independent [js-reactivity-benchmark](https://github.com/volynetstyle/js-reactivity-benchmark) (Andrii Volynets' fork; 15 reactive libraries, 47 tests), `lite-signal` places **4th overall by geomean (
|
|
18
|
+
On the independent [js-reactivity-benchmark](https://github.com/volynetstyle/js-reactivity-benchmark) (Andrii Volynets' fork; 15 reactive libraries, 47 tests), `lite-signal` places **4th overall by geomean (75.5)** -- now clearing 5th-place Preact Signals (79.2) by ~5%, a gap that widened on the 1.3.0 run, behind only three push-eager engines: alien-signals, reflex, and @reactively.
|
|
19
19
|
|
|
20
20
|
It is the **only object-pooled, zero-GC engine in the entire field**, and it gets that result without giving up glitch-freedom or lazy evaluation. Against the mainstream reactivity libraries it leads decisively:
|
|
21
21
|
|
|
22
22
|
| vs | lite-signal is |
|
|
23
23
|
| ---------------------- | -------------- |
|
|
24
|
-
| **@vue/reactivity** | **1.
|
|
24
|
+
| **@vue/reactivity** | **1.5x faster** |
|
|
25
25
|
| **Signia** | **1.7x faster** |
|
|
26
26
|
| **MobX** | **2.3x faster** |
|
|
27
|
-
| **@solidjs/signals** | **2.
|
|
28
|
-
| **SolidJS** | **
|
|
29
|
-
| Preact Signals |
|
|
27
|
+
| **@solidjs/signals** | **2.7x faster** |
|
|
28
|
+
| **SolidJS** | **4.2x faster** |
|
|
29
|
+
| Preact Signals | **1.05x faster** (~5% ahead) |
|
|
30
30
|
| alien-signals | 0.56x (the field leader) |
|
|
31
31
|
|
|
32
|
-
`lite-signal` finishes **top-3 on
|
|
32
|
+
`lite-signal` finishes **top-3 on 21 of the 47 tests** and is the **outright fastest of all 15** on three wide aggregation shapes -- `manyEffectsFromOneSource` (1 source -> many effects, fan-out), plus `manySourcesIntoOneComputedEffect` and `manySourcesIntoOneComputedEffectWithDirect` (many sources -> one computed, fan-in) -- the patterns that dominate live dashboards, scoreboards, and HUDs. It also edges the field leader alien-signals on a fourth (the 1-source linear-chain pull). The three engines ahead of it are all push-eager designs that allocate on the hot path; `lite-signal` is the only top-4 finisher that allocates **nothing** in steady state. (Note: this suite measures reactivity *libraries* -- Vue's reactivity core, MobX, Solid, Preact Signals, etc. -- not full UI frameworks like React or Angular.)
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
npm install @zakkster/lite-signal
|
|
@@ -658,25 +658,25 @@ These are the questions you'd ask in a code review, with the answers:
|
|
|
658
658
|
|
|
659
659
|
## Benchmarks
|
|
660
660
|
|
|
661
|
-
Honest numbers, against the same workload, with anti-DCE sinks and verified effect execution. All measurements: Node 22, **2016-era Intel MacBook Pro (4 cores, ~10 yr old hardware)**,
|
|
661
|
+
Honest numbers, against the same workload, with anti-DCE sinks and verified effect execution. All measurements: Node 22, **2016-era Intel MacBook Pro (4 cores, ~10 yr old hardware)**, **one engine per cold process**, median across reps. Newer/faster machines shift all libs up proportionally; the relative ordering between libs is what matters. Numbers below are lite-signal **@1.3.0** (default `prealloc: "eager"`) vs alien-signals on the same `benchmark.mjs` loop -- the harness now reports **median execution time + transient heap** rather than ops/s. 1.3.0's hot paths are byte-identical to 1.2.2, so these track the 1.2.2 measurement; the deltas are run-to-run noise on this old host, not engine changes.
|
|
662
662
|
|
|
663
|
-
| Scenario | What it stresses | lite-signal | alien-signals | lite vs alien |
|
|
664
|
-
| ---------- | -------------------------------- | ----------- | ------------- | ------------- |
|
|
665
|
-
| **
|
|
666
|
-
| **DYNAMIC DAG** | sqrt-layered, FAN=6, read flips each iter | **
|
|
667
|
-
| **
|
|
668
|
-
| **SMALL SELECTIVE** | 6 layers × 64 wide, 6 cand / 3 read | **
|
|
669
|
-
| **KAIROS** | 1 signal -> 1000 computeds -> 1 effect |
|
|
670
|
-
| **
|
|
671
|
-
| **WIDE DENSE** | 5 layers × ~200 wide, dense fan-in
|
|
672
|
-
| **
|
|
673
|
-
| **DEEP CHAIN** | 256-deep computed chain -> 1 effect
|
|
674
|
-
| **heap-delta MUX** | transient alloc pressure, 20K iters | **0.3 KB** | 7,780 KB | -- |
|
|
675
|
-
| **Retained MUX** | state surviving forced GC | **-9 KB** (none) | -2 KB | -- |
|
|
663
|
+
| Scenario | What it stresses | lite-signal | alien-signals | lite vs alien | transient heap (lite / alien) |
|
|
664
|
+
| ---------- | -------------------------------- | ----------- | ------------- | ------------- | ----------------------------- |
|
|
665
|
+
| **SELECTIVE DAG** | sqrt-layered, set churn, 2 read/iter | **4744 ms** | 9176 ms | **+48% faster** | **1.5 MB / 37 MB** (24x less) |
|
|
666
|
+
| **DYNAMIC DAG** | sqrt-layered, FAN=6, read flips each iter | **9670 ms** | 16888 ms | **+43% faster** | **5.1 MB / 24 MB** (4.7x less) |
|
|
667
|
+
| **MUX** | 256 signals -> 1 sum -> 1 effect (fan-in) | **67 ms** | 108 ms | **+38% faster** | **38 KB / 3.9 MB** (104x less) |
|
|
668
|
+
| **SMALL SELECTIVE** | 6 layers × 64 wide, 6 cand / 3 read | **1937 ms** | 2744 ms | **+29% faster** | **0.3 KB / 23.9 MB** (>=23934x less) |
|
|
669
|
+
| **KAIROS** | 1 signal -> 1000 computeds -> 1 effect | 1339 ms | 1325 ms | -1% (parity) | 178 KB / 1.1 MB (6.4x less) |
|
|
670
|
+
| **LARGE WEB APP** | 12 layers × ~80 wide, conditional reads | 2801 ms | 2701 ms | -4% (parity) | **0.3 KB / 41 KB** (41x less) |
|
|
671
|
+
| **WIDE DENSE** | 5 layers × ~200 wide, dense fan-in | 2850 ms | 2740 ms | -4% (parity) | **0.3 KB / 11.6 MB** (>=11605x less) |
|
|
672
|
+
| **BROADCAST** | 1 signal -> 1000 effects (fan-out) | 1182 ms | 1074 ms | -10% | 72 KB / 21 KB |
|
|
673
|
+
| **DEEP CHAIN** | 256-deep computed chain -> 1 effect | 401 ms | **339 ms** | -18% | 18 KB / 905 KB (49.7x less) |
|
|
676
674
|
|
|
677
|
-
|
|
675
|
+
*(lower time = faster; transient heap = average delta-heap per rep, lower = less GC pressure)*
|
|
678
676
|
|
|
679
|
-
|
|
677
|
+
**Reading the table:** lite-signal's time wins cluster exactly where its zero-GC design pays off -- the **allocation-heavy dynamic shapes** (**SELECTIVE DAG +48%**, **DYNAMIC DAG +43%**, **SMALL SELECTIVE +29%**), where alien-signals churns the nursery and lite's object pool allocates near-nothing, plus **MUX +38%** (fan-in aggregation). These are the patterns that dominate live UI workloads under input churn: dashboards, scoreboards, HUDs, leaderboards. On the cheap, low-allocation **stable** shapes (KAIROS, large web app, wide dense) lite runs at **parity** with alien -- within a 1-4% band inside this old host's run-to-run noise. The two losses are **BROADCAST (-10%)** (pure fan-out, no retracking for the pool to amortize) and **DEEP CHAIN (-18%)**: on a 256-deep computed pipeline alien's flatter representation wins because the propagation path is long rather than wide.
|
|
678
|
+
|
|
679
|
+
On allocation pressure, `lite-signal` wins **8 of 9 scenarios** and is alone in the zero-alloc band: **~0.3 KB** of transient garbage on the stable app shapes (large web app, wide dense, small selective) across the whole run. The contrast is starkest on the dynamic DAGs -- lite allocates 1.5-5 MB (genuine retracking re-links) where alien-signals allocates 24-37 MB on the same shapes, and that allocation gap is the mechanism behind lite's +43-48% wins there once each engine is measured in isolation. The one scenario where lite allocates more is **BROADCAST** (72 KB vs alien's 21 KB), a pure fan-out with no retracking. `prealloc: "lazy"` trades a little extra first-construction allocation on the dynamic shapes for a smaller resident heap and faster cold start; the steady state is identical. preact and solid trail both engines on the dynamic shapes by 1-2 orders of magnitude on transient heap.
|
|
680
680
|
|
|
681
681
|
> Note on the +70.8 KB retained that lite-signal shows on KAIROS specifically: that's the pre-allocated pool sitting in memory holding the live graph (1002 nodes + ~2000 links). The pool *is* the working memory -- see the [Case for object pooling](#case-for-object-pooling) section. On the other benches the graph is small enough that the same pool floats below baseline after GC.
|
|
682
682
|
|
|
@@ -786,7 +786,7 @@ npm run verify # test + test:gc + a sanity bench
|
|
|
786
786
|
## Performance Trade-offs & Topology Scaling
|
|
787
787
|
|
|
788
788
|
<details>
|
|
789
|
-
<summary>Stable vs dynamic topologies; Andrii Volynets' matrix, the 1.1.4 result, and the roadmap.</summary>
|
|
789
|
+
<summary>Stable vs dynamic topologies; Andrii Volynets' matrix, the 1.1.4 result, the 1.3.0 ranking, and the roadmap.</summary>
|
|
790
790
|
|
|
791
791
|
`lite-signal` was built with a strict mandate: **absolute zero garbage collection**. By packing the dependency graph into a flat, pre-allocated memory arena, we eliminate the Scavenger GC pauses that plague 120fps Canvas/WebGL loops.
|
|
792
792
|
|
|
@@ -794,6 +794,8 @@ Through **v1.1.2**, that came with a mathematical trade-off: while memory alloca
|
|
|
794
794
|
|
|
795
795
|
**Andrii Volynets** (author of the phenomenal [Alien Signals](https://github.com/stackblitz/alien-signals)) generously ran `lite-signal` through his advanced topology matrix on the **v1.1.2** engine. Those numbers -- the *pre-rewrite baseline* -- are below, followed by the 1.1.4 result.
|
|
796
796
|
|
|
797
|
+
**1.3.0 on the official [js-reactivity-benchmark](https://github.com/volynetstyle/js-reactivity-benchmark) (15 libraries, 47 tests):** `lite-signal` holds **4th overall by geomean (75.5ms)**, behind only alien-signals (42.6, the field leader at 0.56x), reflex (48.9), and @reactively (59.3), and now **ahead of 5th-place Preact Signals (79.2, ~5%)** -- a gap that widened from 1.2.x. It finishes **top-3 on 21 of 47 tests** and is the **outright fastest of all 15 on three wide-aggregation shapes** -- `manyEffectsFromOneSource`, `manySourcesIntoOneComputedEffect`, and `manySourcesIntoOneComputedEffectWithDirect` -- even edging the leader alien-signals on those plus the 1-source linear-chain pull. It remains the only object-pooled, zero-GC engine in the field.
|
|
798
|
+
|
|
797
799
|
#### 1. Stable Topologies (Fan-in / Fan-out / Broadcast)
|
|
798
800
|
In stable environments (game engines, particle systems, visualizers), `lite-signal` is blisteringly fast and maintains a near-zero allocation profile, keeping frame times perfectly flat -- unchanged through 1.1.4.
|
|
799
801
|
|
|
@@ -805,27 +807,27 @@ In stable environments (game engines, particle systems, visualizers), `lite-sign
|
|
|
805
807
|
| **1000x5 (25 sources, wide/dense)** | 304ms | 303ms | 1746ms |
|
|
806
808
|
| **64x6 (selective dynamic DAG)** | 181ms | 196ms | 559ms |
|
|
807
809
|
|
|
808
|
-
*1.
|
|
809
|
-
| Scenario | alien-signals | lite-signal (1.
|
|
810
|
+
*1.3.0 (default eager) on the local harness (slow 2016 MacBook, one engine per cold process -- compare within-column, lite vs alien; the approximating scenarios from `bench/benchmark.mjs`):*
|
|
811
|
+
| Scenario | alien-signals | lite-signal (1.3.0) | result |
|
|
810
812
|
| :--- | :--- | :--- | :--- |
|
|
811
|
-
| **
|
|
812
|
-
| **
|
|
813
|
-
| **SMALL SELECTIVE** (~ 64x6) |
|
|
814
|
-
| **LARGE WEB APP** (~ 1000x12) |
|
|
815
|
-
| **WIDE DENSE** (~ 1000x5) |
|
|
816
|
-
|
|
817
|
-
> **Honest note (1.
|
|
818
|
-
> wins are on the **allocation-heavy** dynamic shapes (
|
|
819
|
-
> +
|
|
820
|
-
> allocates nothing. The cheaper wide-app/dense shapes land within a few percent
|
|
821
|
-
> way (host noise on this old machine).
|
|
822
|
-
>
|
|
823
|
-
>
|
|
824
|
-
>
|
|
825
|
-
|
|
826
|
-
The cross-framework reactivity suite agrees independently, re-run on **1.
|
|
827
|
-
|
|
828
|
-
**The Takeaway:** as of 1.1.4 you no longer have to choose. `lite-signal` keeps the zero-GC, flat-arena profile for 120fps Canvas/WebGL **and** wins decisively on the high-churn dynamic and fan-in topologies that dominate live UI -- the shapes where zero allocation pays off most. It runs at parity with alien-signals on cheap stable shapes. The one shape where alien's flatter representation still leads is the 256-deep computed pipeline (DEEP CHAIN, -
|
|
813
|
+
| **SELECTIVE DAG** (sqrt-layered, set churn) | 9176ms | 4744ms | **lite +48%** |
|
|
814
|
+
| **DYNAMIC DAG** (sqrt-layered, FAN=6) | 16888ms | 9670ms | **lite +43%** |
|
|
815
|
+
| **SMALL SELECTIVE** (~ 64x6) | 2744ms | 1937ms | **lite +29%** |
|
|
816
|
+
| **LARGE WEB APP** (~ 1000x12) | 2701ms | 2801ms | alien +4% |
|
|
817
|
+
| **WIDE DENSE** (~ 1000x5) | 2740ms | 2850ms | alien +4% |
|
|
818
|
+
|
|
819
|
+
> **Honest note (1.3.0 isolated run):** measured one-engine-per-process, lite-signal's
|
|
820
|
+
> wins are on the **allocation-heavy** dynamic shapes (SELECTIVE DAG +48%, DYNAMIC DAG
|
|
821
|
+
> +43%, SMALL SELECTIVE +29%) -- exactly where alien churns the nursery and lite's pool
|
|
822
|
+
> allocates near-nothing. The cheaper wide-app/dense shapes land within a few percent
|
|
823
|
+
> either way (host noise on this old machine). 1.3.0's hot paths are byte-identical to
|
|
824
|
+
> 1.2.2, so these match the 1.2.2 isolated numbers -- the deltas are run-to-run noise,
|
|
825
|
+
> not engine changes. lite remains the only zero-alloc library on every stable scenario
|
|
826
|
+
> (see [`results.txt`](./results.txt)).
|
|
827
|
+
|
|
828
|
+
The cross-framework reactivity suite agrees independently, re-run on **1.3.0** (default eager, median-of-10, isolated): lite-signal is the **fastest of five frameworks on all five `dyn` rows** -- `dyn: large web app` **544ms** (+7% vs alien-signals' 586ms) and `dyn: wide dense` **902ms** (+3% vs 926ms), plus simple component (+17%), dynamic component (+15%), and deep (+14%) -- with preact 6-19× slower and vue 15-32× slower on the app-shaped graphs (see the `run_*.txt` logs). On the tiny `S: updateComputations` micro-rows lite and alien trade the lead within a few percent (lite ahead on 3 of 7); these sub-60ms kernels are dominated by run-to-run noise on this old host. The retracking is verified correct by `retracking.difftest.mjs` -- 20,000 direct + 10,000 batched writes, 0 disagreements against the **published 1.1.5** reference (re-pinned for v1.2).
|
|
829
|
+
|
|
830
|
+
**The Takeaway:** as of 1.1.4 you no longer have to choose, and 1.3.0 holds the line -- the engine still ranks **4th of 15** on the official js-reactivity-benchmark (the only zero-GC library in the field). `lite-signal` keeps the zero-GC, flat-arena profile for 120fps Canvas/WebGL **and** wins decisively on the high-churn dynamic and fan-in topologies that dominate live UI -- the shapes where zero allocation pays off most. It runs at parity with alien-signals on cheap stable shapes. The one shape where alien's flatter representation still leads is the 256-deep computed pipeline (DEEP CHAIN, -18% on the 1.3.0 isolated run).
|
|
829
831
|
|
|
830
832
|
### Roadmap
|
|
831
833
|
- **1.1.5** -- additions in service of `lite-devtools` (node identity/traversability on the introspection walkers, for full auto-discovered graph rendering). *Shipped.*
|
package/llms.txt
CHANGED
|
@@ -122,13 +122,15 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
122
122
|
`1.2.2` because the deletion is small, isolated, and intentionally
|
|
123
123
|
non-behavioral. Drop-in over 1.2.1. **Bench position** (third-party
|
|
124
124
|
[js-reactivity-benchmark](https://github.com/volynetstyle/js-reactivity-benchmark),
|
|
125
|
-
15 frameworks, 47 tests): #4 by geomean (
|
|
126
|
-
(1.
|
|
127
|
-
Signals (
|
|
128
|
-
the field. Ahead of @vue/reactivity (1.
|
|
129
|
-
@solidjs/signals (2.
|
|
130
|
-
winner on `manyEffectsFromOneSource
|
|
131
|
-
`
|
|
125
|
+
15 frameworks, 47 tests): #4 by geomean (75.5) at 1.77x behind alien-signals
|
|
126
|
+
(1.00x), reflex (1.15x), @reactively (1.39x); now ahead of 5th-place Preact
|
|
127
|
+
Signals (79.2, lite ~5% ahead -- the gap widened from 1.2.x). The only
|
|
128
|
+
object-pooled zero-GC engine in the field. Ahead of @vue/reactivity (1.5x),
|
|
129
|
+
Signia (1.7x), MobX (2.3x), @solidjs/signals (2.7x), SolidJS (4.2x). Top-3 on
|
|
130
|
+
21/47 tests; outright winner on `manyEffectsFromOneSource`,
|
|
131
|
+
`manySourcesIntoOneComputedEffect`, and
|
|
132
|
+
`manySourcesIntoOneComputedEffectWithDirect` (and edges the leader alien on a
|
|
133
|
+
fourth, the 1-source linear-chain pull). (The suite measures reactivity
|
|
132
134
|
libraries -- Vue reactivity core, MobX, Solid, Preact Signals -- not full UI
|
|
133
135
|
frameworks like React/Angular.)
|
|
134
136
|
In the community reactive suite (median-of-10), fastest of 5 frameworks
|
|
@@ -253,7 +255,7 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
253
255
|
## When NOT to use
|
|
254
256
|
|
|
255
257
|
- Server-side rendering -- no SSR story.
|
|
256
|
-
- Graph *construction* is allocation-heavy (per-node closures): on create-many micro-benchmarks `alien-signals` builds faster. Real apps build once and update forever -- lite-signal leads the
|
|
258
|
+
- Graph *construction* is allocation-heavy (per-node closures): on create-many micro-benchmarks `alien-signals` builds faster. Real apps build once and update forever -- lite-signal leads every dynamic-topology (`dyn:*`) row and trades the lead with alien within a few percent on the sub-60ms `S: updateComputations` micro-rows (noise-dominated). (The former "chaotic read order" caveat was closed in 1.1.4.)
|
|
257
259
|
- If you want time-travel or serialization -- build those on top. (Graph-inspection devtools are now buildable on the 1.1.4 introspection surface; see lite-devtools.)
|
|
258
260
|
|
|
259
261
|
## API summary
|
|
@@ -388,35 +390,45 @@ None of these touch the reactive engine -- no `FLAG_WATCHER` on `ReactiveNode`,
|
|
|
388
390
|
|
|
389
391
|
The deliberate engineering for `watch`'s "0 per fire" is the hoisted `untrackedFire` closure with `currentNewValue` shared mutable state -- see source comment in `watch.js`. Inline arrow function inside the effect body would allocate per fire and break the zero-GC contract.
|
|
390
392
|
|
|
391
|
-
## Benchmark snapshot (Node 22, 2016-era Intel MacBook Pro,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
|
398
|
-
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
earlier
|
|
418
|
-
|
|
419
|
-
|
|
393
|
+
## Benchmark snapshot (Node 22, 2016-era Intel MacBook Pro, default eager, median across reps -- @1.3.0)
|
|
394
|
+
|
|
395
|
+
`benchmark.mjs` head-to-head vs alien-signals on app-shaped scenarios (time = median
|
|
396
|
+
execution; heap = average transient delta-heap per rep; lite-signal numbers are
|
|
397
|
+
@1.3.0, hot paths byte-identical to 1.2.2):
|
|
398
|
+
|
|
399
|
+
| Scenario | lite vs alien (time) | transient heap (lite / alien) |
|
|
400
|
+
| -------------------------------- | -------------------- | ----------------------------- |
|
|
401
|
+
| SELECTIVE DAG (set churn) | **+48% faster** | 1.5 MB / 37 MB |
|
|
402
|
+
| DYNAMIC DAG (FAN=6, read flips) | **+43% faster** | 5.1 MB / 24 MB |
|
|
403
|
+
| MUX (256 sigs -> sum -> effect) | **+38% faster** | 38 KB / 3.9 MB |
|
|
404
|
+
| SMALL SELECTIVE (~64x6) | **+29% faster** | 0.3 KB / 23.9 MB |
|
|
405
|
+
| KAIROS (1 -> 1000 computeds) | -1% (parity) | 178 KB / 1.1 MB |
|
|
406
|
+
| LARGE WEB APP (~1000x12) | -4% (parity) | 0.3 KB / 41 KB |
|
|
407
|
+
| WIDE DENSE (~1000x5) | -4% (parity) | 0.3 KB / 11.6 MB |
|
|
408
|
+
| BROADCAST (1 -> 1000 effects) | -10% | 72 KB / 21 KB |
|
|
409
|
+
| DEEP CHAIN (256-deep -> effect) | -18% | 18 KB / 905 KB |
|
|
410
|
+
|
|
411
|
+
lite-signal's time wins are the allocation-heavy dynamic shapes (object pool allocates
|
|
412
|
+
near-nothing; alien churns the nursery), plus MUX fan-in aggregation -- the patterns
|
|
413
|
+
that dominate live UI under input churn. Parity on the cheap stable wide shapes (within
|
|
414
|
+
run-to-run noise on this old host). Two losses: BROADCAST (pure fan-out, no retracking
|
|
415
|
+
for the pool to amortize) and DEEP CHAIN (alien's flatter representation wins when the
|
|
416
|
+
propagation path is long rather than wide). On allocation, lite wins 8/9 scenarios and
|
|
417
|
+
is alone in the zero-alloc band (~0.3 KB transient on the stable app shapes). NOTE: the
|
|
418
|
+
BROADCAST and KAIROS results are now parity-or-behind on 1.3.0's isolated harness;
|
|
419
|
+
earlier ops/s snapshots that showed lite ahead on those were measured under a different
|
|
420
|
+
(multi-engine, shared-heap) protocol.
|
|
421
|
+
|
|
422
|
+
The cross-framework reactivity suite (5 frameworks) re-run on 1.3.0 (default eager,
|
|
423
|
+
median-of-10): lite-signal is fastest on all five `dyn:*` rows -- `dyn: large web app`
|
|
424
|
+
544ms (+7% vs alien-signals' 586ms), `dyn: wide dense` 902ms (+3% vs 926ms), plus
|
|
425
|
+
simple component (+17%), dynamic component (+15%), deep (+14%) -- with preact 6-19x
|
|
426
|
+
slower and vue 15-32x slower on the app-shaped graphs. On the sub-60ms
|
|
427
|
+
`S: updateComputations` micro-rows lite and alien trade the lead within a few percent
|
|
428
|
+
(lite ahead on 3/7), noise-dominated on this host. Retracking verified correct by
|
|
429
|
+
`retracking.difftest.mjs` (20,000 direct + 10,000 batched writes, 0 disagreements vs
|
|
430
|
+
published 1.1.5). `prealloc: "lazy"` trades a little first-construction allocation on the
|
|
431
|
+
dynamic shapes for a smaller resident heap and faster cold start; steady state identical.
|
|
420
432
|
|
|
421
433
|
Retained heap after forced GC: typically negative for all libs (V8 compacts).
|
|
422
434
|
The one exception: lite-signal shows ~+71 KB retained on KAIROS, which is the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakkster/lite-signal",
|
|
3
|
-
"version": "1.3.0-rc",
|
|
3
|
+
"version": "1.3.0-rc.1",
|
|
4
4
|
"description": "Zero-GC reactive graph. Monomorphic object pool, versioned push-pull propagation, 32-bit modular versioning. Built for hot paths and long-running processes.",
|
|
5
5
|
"author": "Zahary Shinikchiev <shinikchiev@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"homepage": "https://github.com/PeshoVurtoleta/lite-signal#readme",
|
|
54
54
|
"repository": {
|
|
55
55
|
"type": "git",
|
|
56
|
-
"url": "git+https://
|
|
56
|
+
"url": "git+https://gitlab.com/zakkster/lite-signal.git"
|
|
57
57
|
},
|
|
58
58
|
"bugs": {
|
|
59
59
|
"url": "https://github.com/PeshoVurtoleta/lite-signal/issues",
|