top | item 43543171 (no title) neillyons | 11 months ago 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... discuss order hn newest dundarious|11 months ago False sharing is an absolutely classic Concurrency 101 lesson, nothing remarkable about it. kubb|11 months ago Something that shouldn’t be written in a GC language. Cthulhu_|11 months 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|11 months ago I don't think GC has anything to do here, doing manual memory allocation we might hit the same problem.
dundarious|11 months ago False sharing is an absolutely classic Concurrency 101 lesson, nothing remarkable about it.
kubb|11 months ago Something that shouldn’t be written in a GC language. Cthulhu_|11 months 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|11 months ago I don't think GC has anything to do here, doing manual memory allocation we might hit the same problem.
Cthulhu_|11 months 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|11 months ago I don't think GC has anything to do here, doing manual memory allocation we might hit the same problem.
dundarious|11 months ago
kubb|11 months ago
Cthulhu_|11 months ago
piokoch|11 months ago