Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Was this on .netcore 2? If yes, then memory usage for moderate apps has gone down significantly. Turns out they just optimized for demanding apps before.


Yes, it was on the latest. I even tried enabling 'desktop' mode for memory, which helped but barely.

One of my main goals was to have a single binary hosted on heroku free dyno (512mb ram), and this was using ~1gb vs go which idled at ~50mb.


What was the API doing? 1gb with client GC? I’m assuming a single core as well?


Nothing really, it just loaded up a JSON file into memory and then served 2 endpoints to query that structure. I dont have the .net version uploaded, but here is the go version [1]. The 1gb might have been while running load testing on it, I dont remember entirely. It was very consistently hitting it though.

[1] - https://github.com/J-Swift/GamesDbMirror-go/blob/master/pkg/...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: