Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Fix jslib-modify-jquery so that it doesn't run out of memory under a fast JS engine with limited memory #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rniwa
Copy link

@rniwa rniwa commented Sep 21, 2012

Remove nodes added by each test case every 1000 runs so that we don't end up with 1e+7 or 1e+8 nodes and use up the entire 4GB of RAM in Chromium.

To do this, changed the name of element we insert from strong to strike so that we can quickly enumerate all the elements to remove (strike doesn't appear elsewhere in the document).

Also, call after() in the test case labeled "jQuery - after()".

… end up with

1e+7 or 1e+8 nodes and use up the entire 4GB of RAM in Chromium.

To do this, changed the name of element we insert from strong to strike so that
we can quickly enumerate all the elements to remove (strike doesn't appear elsewhere
in the document).

Also, call after() in the test case labeled "jQuery - after()".
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant