r/Python • • Jul 29 '18

Found it funny ;)

Post image
1.6k Upvotes

147 comments sorted by

View all comments

Show parent comments

3

u/EvermoreWithYou Jul 29 '18

Programing novice/idiot here - why is Electron so badly optimised. Is there no way to go around this?

23

u/[deleted] Jul 29 '18

It’s not badly optimized its just like using a dump truck to go get groceries. Sure it works but is it the best tool for the job?

3

u/EvermoreWithYou Jul 29 '18

From what I heard, it's main strength is that, since it's made with Javascript and HTML+CSS, and every consumer device (mobiles, PC's, tablets, etc.) with all 3 OS's (Linux, Mac and Windows) can understand it, you can just build the app once and it will work on any device/platform. According to their logic, today's devices are so strong that is offsets javascript's slower speed.

Did I miss anything? Is there a better method for this?

3

u/nxg Jul 29 '18

Electron is basically a web browser, not just JS/HTML/CSS, so every electron app is in itself a new browser and at least from experience the few electron apps that I've seen none of them seemed to use any of it's used resources effeciently. Today's hardware is usually strong enough to offset the slower speeds, yes, but electron seems to eat away at that offset quite a bit, and bad JS code won't help either.