Altair: Reduce app size

Created on 7 Oct 2019  Β·  14Comments  Β·  Source: imolorhe/altair

Hey πŸ‘‹

First, thank you for such an awesome tool. The question I have is related to the app's size.
Freshly installed on mac os it's almost 520mb. As an example, VSCode editor is 230mb, twice less.

So why is graphql client so heavy, maybe it's possible to reduce its size?

enhancement

Most helpful comment

Thanks I have found the reason for the large app size. I don't filter out the application content when packaging the app so the electron app is bundled with all the files it finds in the directory.

I'll add a files list to ensure only required files are packaged. πŸ™‚

All 14 comments

πŸ‘‹πŸΎThanks for opening your first issue here! Be sure to follow the issue template! ✌🏾

Hey, never really looked into why the bundle is so large. I always assumed electron apps have large sizes due to the nodejs runtime that is bundled with the apps.

@imolorhe yep, this is why I added VSCode as an example, it's also an electron app. I also have another electron apps: Twitch (~220mb), RunJs (~190mb), Figma (~140mb), Atom (~590mb).

Interesting if it's somehow possible to reduce Altrair size as there are definitely smaller electron apps :)

Thanks I have found the reason for the large app size. I don't filter out the application content when packaging the app so the electron app is bundled with all the files it finds in the directory.

I'll add a files list to ensure only required files are packaged. πŸ™‚

Digging further, I think I can reduce the app size even more if I have the electron app as a separate package, instead of having it as part of the main repo.

188.7mb ❀️

@imolorhe epic πŸŽ‰

Assets for v2.3.4:
Screenshot 2019-10-13 at 9 27 50 PM

Assets for v2.3.5:
Screenshot 2019-10-13 at 9 27 38 PM

All assets sizes decreased by half. Thanks for mentioning this 😊

@allcontributors[bot] Please add @vladshcherbin for bugs.

@imolorhe

I've put up a pull request to add @vladshcherbin! :tada:

@imolorhe after installation, on mac os the app size dropped from 520mb to 190mb.

Thank you a lot! πŸŽ‰πŸ‘

Any issues with the new installation? Lost queries, windows, collections?

@imolorhe I haven't used Altair heavily with all features it has. No issues with things I used though, everything seems to be fine πŸ‘Œ

Okay. Good to hear.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vinlock picture Vinlock  Β·  8Comments

trafficfox picture trafficfox  Β·  8Comments

simPod picture simPod  Β·  5Comments

isaachvazquez picture isaachvazquez  Β·  8Comments

sneko picture sneko  Β·  10Comments