vaid
vaid

Reputation: 1550

Extremely slow HTTP data transfer [Electron]

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?

Here is a visualization: enter image description here

Upvotes: 0

Views: 622

Answers (1)

vaid
vaid

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

Related Questions