Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Xophmeister
· 2y ago · 0 comments
This is an IO bound problem. Trying to "go faster" by using multiple threads or vectorisation isn't going to achieve much.
Comments
[–]
frant-hartm
2y ago
No, it is not. The file is smaller than the available RAM, so will be cached in subsequent runs.
[–]
brazzy
2y ago
You're not up to date with how fast IO can be these days. Nobody who cares primarily about performance uses spinning rust anymore.
[–]
bufferoverflow
2y ago
I'm pretty sure Hetzner servers (where the test is performed) have NVMe drives that can read at 4GB/s. So theoretically IO bound solution would be done in around 0.25 seconds. However the fastest current solution is around 12 seconds.
So it's not IO-bound.