They're heavily tuned but I think having the generational hypothesis and copying longer-lived objects is still standard? As is allowing a fair amount of garbage to accumulate to increase throughput and reduce copying at the cost of memory footprint?
Posting instead of researching in hopes someone smarter can chime in, because I'm lazy.
My benchmark:
1) .net app, one text field, one button; private bytes 22mb, working set 27mb
2) native app, two text fields, three buttons; private bytes 1.2mb, working set 7.3mb
3) electron, about:blank, 1.2GiB
electron, about:blank, 90mb
Just tested
That's better than the GTK4 hello world I tried out last year.
Seconded, the only 1.2 GB electron app I’ve made had a ~500MB ML model’s weights embedded in it
They're heavily tuned but I think having the generational hypothesis and copying longer-lived objects is still standard? As is allowing a fair amount of garbage to accumulate to increase throughput and reduce copying at the cost of memory footprint?
Posting instead of researching in hopes someone smarter can chime in, because I'm lazy.