@saagar Back in a different life I was a DBA. A programmer came over and complained that the DB resources allocated to his program were insufficient and his program gets killed after a while when it uses too many resources. I had him print progress logs, and calculated that his software would take 2 CPU *weeks* to complete.
After modifying his algorithm a bit, saving about 16KB in RAM during execution, we got down to 2 CPU minutes.
https://mastodon.sdf.org/@arikb/113486697833964396
@saagar He just offloaded all the work onto the database with monster queries instead of thinking for a bit and actually coding what he was supposed to. When people get a tool (like the GC in […]
────