Skip to content

Conversation

mk
Copy link
Member

@mk mk commented May 22, 2023

Previously each node in the viewer tree would carry a viewer node and so we'd read and evaluate it multiple times. Now we build up a lookup table from hash to viewer and do it only once per unique viewer.

TODO:

  • dedupe viewers
  • convey closing parents via opts instead of viewer
  • Adjust tests
  • Fix closing parens for (concat (range 20) [#{1 2 3} :foo])

@mk mk force-pushed the dedupe-viewer-fns branch from e37bbab to 2b33638 Compare May 22, 2023 10:27
@mk mk force-pushed the dedupe-viewer-fns branch from bc34e40 to e5e1826 Compare May 25, 2023 12:58
@mk mk changed the title Improve render performance by only evaluating each render-fn once Improve show performance by only evaluating each render-fn once May 26, 2023
@mk mk changed the title Improve show performance by only evaluating each render-fn once Improve show performance by only evaluating each :render-fn once May 26, 2023
@mk mk force-pushed the main branch 2 times, most recently from 7f228ff to 31fbb98 Compare June 25, 2025 07:26
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

Successfully merging this pull request may close these issues.

2 participants