stillflow.engine 0.1.5 → 0.1.6
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 +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,8 +24,13 @@ Also I think that **explicit reactivity is better than implicit reactivity**. So
|
|
|
24
24
|
|
|
25
25
|
## Benchmarks
|
|
26
26
|
|
|
27
|
-
**Stillflow** performs within *
|
|
28
|
-
|
|
27
|
+
**Stillflow** performs within *3-4% of VanillaJS* in the Krause benchmark on my notepad, while providing a full transactional state model. I run benchmark on JSX and DOM versions of my framework. You can see results below. I explicitly removed benchmark-specific optimizations from the data generation to ensure a completely fair comparison.
|
|
28
|
+
|
|
29
|
+
*Note 1*: In specific operations like `remove row`, **Stillflow** is up to 1.8-2x than *VanillaJS* due to its delta-based collection and lazy deletion.
|
|
30
|
+
|
|
31
|
+
*Note 2*: The results of jsx version of **Stillflow** is done without micro- or macro- tasks.
|
|
32
|
+
|
|
33
|
+

|
|
29
34
|
|
|
30
35
|
## Quick Start
|
|
31
36
|
|
|
@@ -87,7 +92,7 @@ function TodoItem() {
|
|
|
87
92
|
function App() {
|
|
88
93
|
return (
|
|
89
94
|
<jsxdom.div>
|
|
90
|
-
<jsxdom.input sf:value={(context: TodoState) => context.input} on:
|
|
95
|
+
<jsxdom.input sf:value={(context: TodoState) => context.input} on:change={change} />
|
|
91
96
|
<jsxdom.button on:click={add}>
|
|
92
97
|
Add
|
|
93
98
|
</jsxdom.button>
|