Reputation: 1550
I'm developing an Electron app that download a file from my web server.
I tried downloading the exact same file from a separate NodeJS script (no Electron, just plain NodeJS) and speeds are as to be expected: very fast.
However when I run the exact same code from withing my Electron app it is extremely slow.
Is there a know issue with Electron and data transfer issues?
Upvotes: 0
Views: 622
Reputation: 1550
Issue seemed to be related to async/await
for some reason.
I was calling method A, which called method B, which called the web request.
I skipped method B and went from A to WEB directly and now speeds are great.
Upvotes: 1