←back to thread

482 points jedeusus | 5 comments | | HN request time: 1.738s | source
1. neillyons ◴[] No.43543171[source]

Curious to know what people are building where you need to optimise like this? eg Struct Field Alignment https://goperf.dev/01-common-patterns/fields-alignment/#avoi...

replies(2): >>43543293 #>>43543824 #
2. dundarious ◴[] No.43543293[source]

False sharing is an absolutely classic Concurrency 101 lesson, nothing remarkable about it.

3. kubb ◴[] No.43543824[source]

Something that shouldn’t be written in a GC language.

replies(2): >>43544207 #>>43544263 #
4. piokoch ◴[] No.43544207[source]

I don't think GC has anything to do here, doing manual memory allocation we might hit the same problem.

5. Cthulhu_ ◴[] No.43544263[source]

GC is not relevant in this case, it's about whether you can make structs fit in cache lines and CPU registers. Mechanical sympathy is the googleable phrase. GC is a few layers further away.