tui.grid icon indicating copy to clipboard operation
tui.grid copied to clipboard

Memory leak issue where the JS heap does not clear after loading a large amount of data and unmounting the component.

Open DoMyBestFor opened this issue 2 years ago • 0 comments

Describe the bug Memory leak issue where the JS heap does not clear after loading a large amount of data and unmounting the component.

To Reproduce Steps to reproduce the behavior:

1. Load 1 million data items into the React TUI grid component 2. Unmount the said component 3. Check the JS heap

I waited a day thinking that the garbage collection (GC) might take a long time to work, but there was no change.

Expected behavior memory release

Screenshots before load >> image

1 millions data load >> image image

after table component unmount (remove component) image

I waited a day thinking that the garbage collection (GC) might take a long time to work, but there was no change.

It seems to be a critical issue as the heap continuously increases and the garbage collection (GC) does not work with every creation of the table component, even after deleting the component.

Desktop (please complete the following information):

  • OS: Ubuntu20.04, Window 11
  • Browser: Chrome
  • Version: tui v4.21.15

DoMyBestFor avatar Jul 26 '23 07:07 DoMyBestFor