Repository navigation
Upgrade to Electron and Chrome 42 - #6877
kevinsawicki wants to merge 27 commits into
Conversation
|
Did this actually work for you? How are your native modules not all broken? We had to use |
Yeah, it ran on my mac.
Maybe because they all use |
Yeah, that version of |
6ecda60 to
07feec6
Compare
5eebf31 to
c5fe5d4
Compare
|
Looks like there will be chrome 43, not sure about timing though, but maybe it is better to update straight to that? |
|
Similar PR was started here: #6505. Just adding it here as a reference so that we can close that after this is merged. Also, that PR has some other nice changes, e.g. changes to code comments where atom-shell was used as a name to use electron -- might be nice to do that here as well? |
|
I need some work on Electron side to make snapshot work, so I'll try updating Atom to Chrome 43 in this PR. @paulcbetts already reported |
|
thats a lot of bugs in chrome 43 then |
|
I have updated this branch with snapshot support, there is still something not working because of Chrome's bug, but it is enough to test how well snapshot works. The conclusion is snapshot doesn't save loading time for Atom. Snapshot boosts startup time by reducing file reading time and JS compilation time to minimum. For file reading time, since Atom is using asar archive, we already have done the best we can, and snapshot itself has its own overhead, it needs to read the huge snapshot file (which is larger than the asar archive) and create a huge object on the heap. For the JS compilation time, V8 compiles the JS file already very fast, the actual time spent on compilation is quite minor, and since V8 tends to do lazy optimizations when running the code, most time are spent on running the code instead of compiling the code. So compared to the time saved by snapshot, the overhead of snapshot actually makes things slower. |
|
@zcbenz sounds like our princess is in another castle. One idea I had recently was to somehow make a lazy version of |
Some modules might do some initialization work when being "require"d, one example is graceful-fs. But generally I think it is a good idea. IMO the key to quicker startup is to show the initial page as quick as possible, it is hard to make things faster if we have to do lots of computations or IO operations before actually showing the content. |
|
I'm contemplating picking this up and continuing the effort started by @kevinsawicki and @zcbenz. Anything in particular I should know that has not been discussed here? |
|
This would be cool, this would allow opening links under linux with chrome again (electron/electron#1348). |
|
Closing in favor of #7877 |
Updates the build to use electron 0.26 and gets Atom running on Chrome 42
Closes #6505