@signaltree/core 1.1.0 → 1.1.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 +24 -25
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -559,35 +559,34 @@ class AppStateService {
|
|
|
559
559
|
|
|
560
560
|
_Exceptional scaling: Only 92% performance overhead for 4x depth increase_
|
|
561
561
|
|
|
562
|
-
###
|
|
562
|
+
### SignalTree Core Performance Results (Measured)
|
|
563
563
|
|
|
564
|
-
| Operation | SignalTree Core |
|
|
565
|
-
| --------------------------- | --------------- |
|
|
566
|
-
| Tree initialization (small) | **0.031ms** |
|
|
567
|
-
| Tree initialization (large) | **0.745ms** |
|
|
568
|
-
| Single update | **0.188ms** |
|
|
569
|
-
| Nested update (5 levels) | **0.188ms** |
|
|
570
|
-
| Computation (cached) | **0.094ms** |
|
|
571
|
-
| Memory per 1K entities | **1.2MB** |
|
|
564
|
+
| Operation | SignalTree Core | Notes |
|
|
565
|
+
| --------------------------- | --------------- | ---------------- |
|
|
566
|
+
| Tree initialization (small) | **0.031ms** | 27 nodes |
|
|
567
|
+
| Tree initialization (large) | **0.745ms** | 341 nodes |
|
|
568
|
+
| Single update | **0.188ms** | Property update |
|
|
569
|
+
| Nested update (5 levels) | **0.188ms** | Deep tree update |
|
|
570
|
+
| Computation (cached) | **0.094ms** | Memoized result |
|
|
571
|
+
| Memory per 1K entities | **1.2MB** | Measured usage |
|
|
572
572
|
|
|
573
573
|
### Advanced Performance Features
|
|
574
574
|
|
|
575
|
-
| Feature | SignalTree Core | With Extensions |
|
|
576
|
-
| ------------------- | --------------- | ---------------------- |
|
|
577
|
-
| Batching efficiency | Standard | **455.8x improvement** |
|
|
578
|
-
| Memoization speedup | Basic | **197.9x speedup** |
|
|
579
|
-
| Memory efficiency | **
|
|
580
|
-
| Bundle impact | **+5KB** | **+15KB max** |
|
|
581
|
-
|
|
582
|
-
### Developer Experience
|
|
583
|
-
|
|
584
|
-
| Metric | SignalTree Core |
|
|
585
|
-
| ----------------------- | --------------- |
|
|
586
|
-
| Lines of code (counter) | **4 lines** | 32
|
|
587
|
-
| Files required | **1 file** | 4
|
|
588
|
-
|
|
|
589
|
-
|
|
|
590
|
-
| Maintenance score | **9.2/10** | 3.8 | 6.5 | **2.4x better** |
|
|
575
|
+
| Feature | SignalTree Core | With Extensions | Notes |
|
|
576
|
+
| ------------------- | --------------- | ---------------------- | ---------------------- |
|
|
577
|
+
| Batching efficiency | Standard | **455.8x improvement** | vs non-batched |
|
|
578
|
+
| Memoization speedup | Basic | **197.9x speedup** | vs non-memoized |
|
|
579
|
+
| Memory efficiency | **Optimized** | **Further optimized** | Lazy signals + cleanup |
|
|
580
|
+
| Bundle impact | **+5KB** | **+15KB max** | Tree-shakeable |
|
|
581
|
+
|
|
582
|
+
### Developer Experience (Core Package)
|
|
583
|
+
|
|
584
|
+
| Metric | SignalTree Core | Traditional State Mgmt | **Improvement** |
|
|
585
|
+
| ----------------------- | --------------- | ---------------------- | --------------- |
|
|
586
|
+
| Lines of code (counter) | **4 lines** | 18-32 lines | **68-88% less** |
|
|
587
|
+
| Files required | **1 file** | 3-4 files | **75% fewer** |
|
|
588
|
+
| Setup complexity | **Minimal** | Complex | **Simplified** |
|
|
589
|
+
| API surface | **Small** | Large | **Focused** |
|
|
591
590
|
|
|
592
591
|
### Memory Usage Comparison
|
|
593
592
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaltree/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Lightweight, type-safe signal-based state management for Angular. Core package providing hierarchical signal trees, basic entity management, and async actions.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/core": "^20.1.0"
|