-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
It seems like the selectize.js module's destroy method is not fully releasing all resources to the GC. Use this test case and follow the instructions below to confirm this issue.
- Click on selectize input so that drop down appears. This will allocate a bunch of DOM elements and memory
- Take a heap snap shot
- Click the
Destroylink - Force a GC and/or wait for GC to reclaim resources
- Observe that the
Detached DOM Treehas references to the DIV and other DOM objects created by selectize (Note this can be done in google chrome dev toolbar). Using the timeline can also help to visualize the number of nodes allocated
According to the API it seems like the destroy method should be all that is required to make all resources eligible for GC. Let me know if there are additional steps required or for some other reason my analysis is incorrect.
The updated test case will run the same test case in an automated fashion 10 times so the memory and growth behavior can be observed without user interaction.
thsowers