David Smith on Nostr: Refcount contention? Fighting over a cache line. Branch mispredict? Wouldn't have ...
Refcount contention? Fighting over a cache line. Branch mispredict? Wouldn't have hurt much if resolving the comparison wasn't waiting on a load. You found an approach with better computational complexity? It probably has worse memory access patterns at realistic sizes, just use an array. Fancy ECS for your game? Just syntax sugar for AoS->SoA. Compacting garbage collection overhead? Sometimes *less than zero* because it improves memory layout.
Cache rules everything around me
Published at
2026-04-15 16:22:16 UTCEvent JSON
{
"id": "377c9209788b2dd0957d55dd149cdf7c7aedb79f521797be718b043bc27a2f63",
"pubkey": "4c5149865adbfe714a67c19f6fe497125ee8dff070e5715c07347c9590d63e9f",
"created_at": 1776270136,
"kind": 1,
"tags": [
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/116/409/598/794/866/545/original/77a6f05a41f5aab7.jpg",
"m image/jpeg",
"dim 974x1302",
"blurhash UHF=zH0g^*s.9F%MRjjYR+jZWBWV00ogD%ay"
],
[
"proxy",
"https://mastodon.social/users/Catfish_Man/statuses/116409639688396708",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Refcount contention? Fighting over a cache line. Branch mispredict? Wouldn't have hurt much if resolving the comparison wasn't waiting on a load. You found an approach with better computational complexity? It probably has worse memory access patterns at realistic sizes, just use an array. Fancy ECS for your game? Just syntax sugar for AoS-\u003eSoA. Compacting garbage collection overhead? Sometimes *less than zero* because it improves memory layout.\n\nCache rules everything around me\n\nhttps://files.mastodon.social/media_attachments/files/116/409/598/794/866/545/original/77a6f05a41f5aab7.jpg",
"sig": "b3551bea95fa43696eadb741f5b713fc21240608920f80c65982a4d17e9dc1579c5fdc6585d0f3ee66bf304f647ea498eabce509a146bbab656ad74949a087f0"
}