What can I say, I’m a performance nerd.
- 0 Posts
- 4 Comments
Joined 2 years ago
Cake day: July 1st, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
That’s a platform dependent change. Overflow is undefined behavior. I’d rather have my code portable so it can run on my Univac 1101.
Fixed
boolean isOdd(int num) { if(num == 1) return true; if(num > 0) return isEven(num - 1); else return isEven(num + 1); } boolean isEven(int num) { if(num > 0) return isOdd(num - 1); else return isOdd(num + 1); }


The two biggest differences are that containers use more disk space vs non-containers and that containers won’t use shared libraries. That means that instead of loading up 1 version of glibc for most of the OS, you end up with n containers glibcs loaded up.
Practically speaking, this isn’t really a huge deal. A lot of those libraries fit in less than 1mb. A disaster if this was my childhood computer. A non-issue on modern systems with more than 512mb of ram.