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

Implement cached node elements for Walkontable renderers #6556

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

budnix
Copy link
Member

@budnix budnix commented Dec 12, 2019

Context

This commit implements node elements cache for Walkontable renderers. This approach allows to cache particular cell element connected to the Walkontable source index without rendering needed when the value or content in that cell wasn't changed. Currently, the NodesPool module, which is responsible for caching the nodes, keeps all of them in the memory - in the future, it'll be tweaked.

This PR is the basis for further development about implementing the EcoRendering idea.

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature or improvement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Additional language file or change to the existing one (translations)

Related issue(s):

  1. EcoRenderers feature #5769

Checklist:

  • My code follows the code style of this project,
  • My change requires a change to the documentation.

This commit implements node elements cache for Walkontable renderers.
This approach allows to cache particular cell element connected to the
Walkontable source index without rendering needed when the value or
content in that cell wasn't change. Currently, the NodesPool module,
which is responsible for caching the nodes, keeps all of them in the
memory - in the future it'll be tweaked.

Generally, for more JS memory usage, we achieve faster rendering.

This is one step further to make EcoRendering idea complete. Currently,
there is missing a mechanism that tells Walkontable which cell should be
re-rendered because some values, styles or cell meta properties changed.

Issue: #5769
@budnix budnix self-assigned this Dec 12, 2019
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 05c9851:

Sandbox Source
vanilla-handsontable-pr Configuration

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

Successfully merging this pull request may close these issues.

None yet

2 participants