Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensibleListWidgetWithSize has map unnecessary in principle #58

Open
Ericson2314 opened this issue Apr 4, 2019 · 0 comments
Open

Comments

@Ericson2314
Copy link
Member

Consider this:

  1. The Dom stores children in a list
  2. Adjustable allows patches on a map showing kv-pair rearrangement
  3. extensibleListWidgetWithSize spoofs keys for a map solely widgets are laid out in the right order.

If reflex-frp/reflex#299 is ever done, we could remove the map entirely.

Even without that, it's possible to use tons of "with move" patches (http://hackage.haskell.org/package/reflex-0.6.1/docs/Reflex-Patch-DMapWithMove.html#t:PatchDMapWithMove) to perhaps get a slightly more efficient result. (Still O(n) not O(1) browser operations, but at least individual kv-pair widgets don't get redrawn.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant