{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/Prototope/issues/84","labels_url":"https://api.github.com/repos/Khan/Prototope/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/Khan/Prototope/issues/84/comments","events_url":"https://api.github.com/repos/Khan/Prototope/issues/84/events","html_url":"https://github.com/Khan/Prototope/issues/84","id":76161518,"number":84,"title":"Live-reloading performance regressions","user":{"login":"andymatuschak","id":2771,"avatar_url":"https://avatars.githubusercontent.com/u/2771?v=3","gravatar_id":"","url":"https://api.github.com/users/andymatuschak","html_url":"https://github.com/andymatuschak","followers_url":"https://api.github.com/users/andymatuschak/followers","following_url":"https://api.github.com/users/andymatuschak/following{/other_user}","gists_url":"https://api.github.com/users/andymatuschak/gists{/gist_id}","starred_url":"https://api.github.com/users/andymatuschak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andymatuschak/subscriptions","organizations_url":"https://api.github.com/users/andymatuschak/orgs","repos_url":"https://api.github.com/users/andymatuschak/repos","events_url":"https://api.github.com/users/andymatuschak/events{/privacy}","received_events_url":"https://api.github.com/users/andymatuschak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Khan/Prototope/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-13T23:32:42Z","updated_at":"2015-05-15T13:16:08Z","closed_at":null,"body":"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.\r\n\r\nIf 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.\r\n\r\n(cc @spicyj)"},"comment":{"url":"https://api.github.com/repos/Khan/Prototope/issues/comments/102393845","html_url":"https://github.com/Khan/Prototope/issues/84#issuecomment-102393845","issue_url":"https://api.github.com/repos/Khan/Prototope/issues/84","id":102393845,"user":{"login":"jbrennan","id":131923,"avatar_url":"https://avatars.githubusercontent.com/u/131923?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrennan","html_url":"https://github.com/jbrennan","followers_url":"https://api.github.com/users/jbrennan/followers","following_url":"https://api.github.com/users/jbrennan/following{/other_user}","gists_url":"https://api.github.com/users/jbrennan/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrennan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrennan/subscriptions","organizations_url":"https://api.github.com/users/jbrennan/orgs","repos_url":"https://api.github.com/users/jbrennan/repos","events_url":"https://api.github.com/users/jbrennan/events{/privacy}","received_events_url":"https://api.github.com/users/jbrennan/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T13:16:08Z","updated_at":"2015-05-15T13:16:08Z","body":"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."}}