Remove VM module - #1619
Remove VM module#1619mauricioszabo wants to merge 3 commits into
Conversation
|
@mauricioszabo, against what version of Electron have you been testing this change? I know you usually run on the bleeding edge. I ask because Claude thinks that the time could soon be right to remove the native compile cache, but not quite yet:
It then checked for me and saw I was on Electron 32.3.3 locally (having bumped it in #1600 and still testing it locally) and continued:
So if I took that at face value, this would be a promising PR that might not quite be ripe for landing. But if you've been running it against Electron 30 or 32 with no observed performance difference, I want to take that seriously as well! |
|
(Also, I did briefly get this mixed up with |
|
That's a good catch, I did run in Electron 41.7.1. But - this warning is happening since our old Electron 12, so I don't even think that But, to be honest, I opened up the PR so that it's simpler for others to download a version without the cache, so they could benchmark things :) |
|
Yeah, I'm not so much worried about the And I agree — I would only want to keep the native compile cache around if it actually improved performance by a measurable amount over not having it. Once we bump to Electron 35 we should be able to compare it to the version of the cache implemented in Node itself; I'd expect Node's version to be superior, but even if it was just equivalent or slightly worse I'd still want to use it over ours. |
|
Giving this the 1.134.0 milestone so I remember to revisit it. Even for 1.134.0 it might be premature, but if so we can just kick it to the next milestone. |
Before moving with this PR, some explanations:
I found that the usage of
vmin the renderer can be the cause that makes Pulsar crash sometimes, especially in newer Electron versions (like now that we're on 30-something).I also tried some benchmarks (on Linux only, because it's the only machine I have available) and found no difference in having the "native cache" toggled on or off - I believe that this code, being present since the early days of Atom, existed because the original
requirewas too slow.So I imagine that removing that won't cause any problem; still, I would love if someone with a Windows machine (and somebody with a Mac one) could test to see if they found any difference in loading performance (native cache should affect only the first load of Pulsar)