| ▲ | BobbyTables2 2 days ago | ||||||||||||||||
Would be interesting to see performance comparisons between this and the alternatives considered like eventfd. Sure, the “hot path” is probably very fast for all, but what about the slow path? | |||||||||||||||||
| ▲ | riyaneel 2 days ago | parent [-] | ||||||||||||||||
eventfd always pays a syscall on both sides (~200-400ns) regardless of load. Tachyon slow path only kick in under genuine starvation: the consumer spins first, then FUTEX_WAIT, and the producer skips FUTEX_WAKE entirely if the consumer still spinning. At sustainable rates the slow path never activates. | |||||||||||||||||
| |||||||||||||||||