this post was submitted on 01 Aug 2023
14 points (100.0% liked)

Rust

5999 readers
4 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

For some reason, it seems popular for GUI crates to use the GPU. I just want to make simple widgets, for like a calculator.

No fancy graphics. I want it quite lightweight.

For some reason, popular GUI crates love to do everything through a GPU, which bumps up the memory / cpu use significantly.

you are viewing a single comment's thread
view the rest of the comments
[–] van2z@programming.dev 12 points 1 year ago* (last edited 1 year ago) (1 children)

OMG, thank you! I have been using Iced. My simple application's RAM just went down from 80 MB to only 4 MB.

The executable size went down from about 8 MB to 2.5 MB

[–] hch12907@programming.dev 3 points 1 year ago (1 children)

8MB to 2.5MB is a huge drop. I wonder what caused the bloat - a crate?

[–] Lmaydev@programming.dev 7 points 1 year ago (1 children)
[–] hch12907@programming.dev 2 points 1 year ago

Obviously.

I mean the specific crate that caused the bloat.