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

Improve show performance by only evaluating each :render-fn once #495

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

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
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