←back to thread

480 points jedeusus | 3 comments | | HN request time: 0.466s | source
Show context
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 #
1. kubb ◴[] No.43543824[source]
Something that shouldn’t be written in a GC language.
replies(2): >>43544207 #>>43544263 #
2. piokoch ◴[] No.43544207[source]
I don't think GC has anything to do here, doing manual memory allocation we might hit the same problem.
3. 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.