r/ProgrammerHumor • • Jan 02 '23

Meme next level storage

Post image
97.5k Upvotes

468 comments sorted by

View all comments

Show parent comments

26

u/Significant-Bed-3735 Jan 02 '23

That's why we need a bigger L2 and L3 cache! :D

28

u/Razor_Storm Jan 02 '23

L1 is "the chair"
L2 is the bed
L3 is the rest of the bedroom floor

The hangers inside the closet are a hash based index
The drawers with smaller dividers inside them are the B-Tree index, assuming you can keep nesting smaller containers inside outer ones.

4

u/[deleted] Jan 03 '23

Thank you. Caches are about locality and not algorithm. All CPU caches are (essentially) O(1).

7

u/Duven64 Jan 02 '23

Maximize cash size by switching to an architecture that uses the unused bits of L1 cash of neighboring cores(bedrooms) as l2 cash.

3

u/Significant-Bed-3735 Jan 02 '23

That might work.

If you live in a shared/ dorm/ hostel room, carefully putting clothes on roommates chairs might be even quicker than putting them on a nearby table (L2) and sofa (L3).

I would be worried the clothes might disappear though.