News for hackers. Stuff that matters.
Re:Lorem Picsum, death by a million pixel-gigabits by cabaalis on Monday August 12, 2019 @11:25AM (#20676244)
I'll bet that most image requests will be within certain parameters. 2^x by 2^y. So you could probably pre-cache most real-world image sizes, and leave dynamic generation for 1-offs.
Re:Lorem Picsum, death by a million pixel-gigabits by davinic on Monday August 12, 2019 @03:58PM (#20679313)
AND you could try to figure out how to do that beforehand, but some LRU-type cache solves the problem without any prior knowledge of what those sizes are.
Re:Lorem Picsum, death by a million pixel-gigabits by anamexis on Monday August 12, 2019 @12:26PM (#20676932)
Well, that's what they're doing.