Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
neillyons
· 1y ago · 0 comments
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...
Comments
[–]
dundarious
1y ago
False sharing is an absolutely classic Concurrency 101 lesson, nothing remarkable about it.
[–]
kubb
1y ago
Something that shouldn’t be written in a GC language.
[–]
Cthulhu_
1y ago
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.
[–]
piokoch
1y ago
I don't think GC has anything to do here, doing manual memory allocation we might hit the same problem.