Commit Graph
10 Commits
Author SHA1 Message Date
Evan Almloff 11b37ee141 more progress updating tui 2022-12-05 09:44:43 -06:00
Evan Almloff 72184e65ef update persistant_iterator utility 2022-12-04 19:43:05 -06:00
Evan Almloff 078b8ba833 work on seperating tree struture from realdom 2022-11-24 10:56:44 -06:00
Demonthos 3b7b503333 Refactor Mutations and simplify Templates (#578)
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
Demonthos 047ed1e553 Subtree memorization / reactive templates (#488)
This commit adds subtree memoization to Dioxus.

Subtree memoization is basically a compile-time step that drastically 
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates 
are then understood by the various renderers in the ecosystem as a 
faster way of rendering the same items. 

For example, in the web, templates are simply a set of DOM Nodes created 
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance. 

Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.

This commit represents a working starter point for this work, adding support 
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve 
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Demonthos 2d08532bad Improve documentation for the native core and native core macro crates (#528)
* improve documentation for the native core and native core macro crates

* fix spelling of depenency
2022-09-06 17:25:10 -07:00
Evan Almloff 5d5e7f55fd pass clippy 2022-05-04 14:37:30 -05:00
Evan Almloff dd7784d205 clean up and document focus system 2022-05-04 14:28:02 -05:00
Evan Almloff 9ed722ae45 change focus when an element is clicked 2022-05-03 17:19:16 -05:00
Evan Almloff 7a17683447 add persistant iterator to native core 2022-05-03 11:01:49 -05:00