Sign in
Log inSign up
Andrei Pechkurov

1 like

·

1.0K reads

2 comments

Shai Almog
Shai Almog
Nov 5, 2022

Very interesting. What I would really like to know is how this scales to hundreds/thousands of threads. I suspect that with the current implementation Go will beat Java due to the limitations of system threads and with Loom we'll see Java turn that around.

1
·
·1 reply
Andrei Pechkurov
Andrei Pechkurov
Author
·Nov 5, 2022

Read operations will scale only with increased CPU core count. As for writes, they might scale better in Go with increased number of goroutines as long as the hash table bucket count is large enough. That's because of cheaper context switches in green threads vs OS threads. Project Loom may indeed change that.

1
·