Skip to content

Conversation

brucejo75
Copy link

@brucejo75 brucejo75 commented Aug 31, 2017

See #6 & #19.

Re-using the iFrame boosted the performance significantly.

The implementation:

  1. caches the iframe.
  2. makes sure the window context of the iframe is left clean after use.

Passed all tests, run as described in #11.

I have an application that calls vm.runInNewContext 100's of time per display loop. Recreating and inserting the iframe is killing performance. Much better with a cached iframe

glutamate pushed a commit to saltcorn/saltcorn that referenced this pull request Jun 22, 2024
* added vm-browserify code as explicit mock

* added cached iframe see #20
- browserify/vm-browserify#20

* copy my vm mock before calling webpack

* clear content div before navigation
- this stops all running scripts in the iframe
- sometimes background scripts delay the actual navigation
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