Skip to content
This repository was archived by the owner on Dec 7, 2018. It is now read-only.

Live-reloading performance regressions #84

Open
andymatuschak opened this issue May 13, 2015 · 5 comments
Open

Live-reloading performance regressions #84

andymatuschak opened this issue May 13, 2015 · 5 comments
Labels

Comments

@andymatuschak
Copy link
Contributor

It appears that Babel-processing our prototypes has caused a significant performance regression—live-reloading now takes about 1.5s; it used to take a couple hundred ms.

If it's loading up Babel + source-map that's slow (as opposed to the actual transpiration), maybe we can improve this by keeping around a JS context with Babel + source-map, and we can reuse that context to transpile the transmitted JS, which we then evaluate in a new VM.

(cc @spicyj)

@jbrennan
Copy link
Contributor

I wonder if we can take a page out of the live-editor codebase and do smarter reloads. They don’t reload the whole thing, they essentially eval + diff and only update what’s changed. It might be overkill, and it might not be a perf gain, but it could be a lot nicer than always resetting.

@andymatuschak
Copy link
Contributor Author

Yep.

I think we should do both! What you mention sounds a lot harder. :)

On May 15, 2015, at 6:16 AM, Jason Brennan [email protected] wrote:

I wonder if we can take a page out of the live-editor codebase and do smarter reloads. They don’t reload the whole thing, they essentially eval + diff and only update what’s changed. It might be overkill, and it might not be a perf gain, but it could be a lot nicer than always resetting.


Reply to this email directly or view it on GitHub #84 (comment).

@jbrennan
Copy link
Contributor

Harder, but already done by our fabulous CS team 💃

@sophiebits
Copy link
Contributor

Probably won't have time to work on this soon, sorry.

(In my experience the live-editor patching was always a little finicky and I'd always have to do a full-reload a few times per session which was annoying enough for me that I would've personally rather it not try to preserve the state.)

@andymatuschak
Copy link
Contributor Author

No worries, @spicyj, wasn’t expecting you to. :)

On May 19, 2015, at 9:23 PM, Ben Alpert [email protected] wrote:

Probably won't have time to work on this soon, sorry.

(In my experience the live-editor patching was always a little finicky and I'd always have to do a full-reload a few times per session which was annoying enough for me that I would've personally rather it not try to preserve the state.)


Reply to this email directly or view it on GitHub #84 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants