Git Product home page Git Product logo

Comments (4)

naschorr avatar naschorr commented on August 15, 2024

Potential optimization starting point: ElectronNET/Electron.NET#157 (comment)

from deep-rock-galactic-save-syncer.

naschorr avatar naschorr commented on August 15, 2024

After playing around with some ideas, it doesn't seem like a meaningful reduction in build size is feasible. Basically, Electron.NET already produces as small as reasonably possible version (and has since like 2019). On the .NET side of things, AOT and trimming don't really yield much of a result either. I'd imagine improvements will come eventually, as I was getting tons of trimmer warnings during the build, but certainly nothing concrete yet. The only meaningful way I can reduce the size would be to stop generating a single file executable, and work under the assumption that users would have the .NET runtime installed already, so none of that code needs to be bundled in. I think that's a bridge to far for casual users of this app, and I don't know how many people care enough about ~100MB to deal with the added hassle to installing another runtime.

from deep-rock-galactic-save-syncer.

naschorr avatar naschorr commented on August 15, 2024

Minor discovery: adding <PublishTrimmed>true</PublishTrimmed> to the projects enables trimming (that I thought was enabled by default), which drops the size of the release executable from ~160MB to ~142MB. It's not massive, but it's something!

from deep-rock-galactic-save-syncer.

naschorr avatar naschorr commented on August 15, 2024

After some more playing around, it seems like the new smaller executable has some issues. It installs just fine, but when the app is run, it just shows a blank white screen.

from deep-rock-galactic-save-syncer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.