Skip to content

fix destroy() memory leak #218

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

fix destroy() memory leak #218

wants to merge 7 commits into from

Conversation

zspitzer
Copy link

there is no need to clone() here, it creates a memory leak as the html and events aren't attached to the to DOM and therefore can't be removed by remove()

Fixes #216

there is no need to clone() here,  it creates a memory leak as it's not attached the to DOM and therefore isn't removed by remove()
@zspitzer zspitzer changed the title Update internal.js fix destroy() memory leak Oct 20, 2015
Trigger an event when columns are toggled on or off
The current templating approach is really inefficient, as it recursively loops thru every 
passed available variable for substituion and applies a regex for each one. 

It's much faster to initially parse the template and then only process those strings which are 
actually present in the template.

This revised implementation both caches the parsed templates and then only processes the string which are present.

The performance improvement is quite drastic, especially with large tables. A large table was previously taking 15s to render 
in Chrome, now takes less than 1s with this approach
Drastically faster templating approach
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.

1 participant