News for hackers. Stuff that matters.
Re:Major standard library changes in Go 1.20 by logicchains on Tuesday January 17, 2023 @07:03AM (#34411511)
A 100x speedup makes sense because a cache miss costs around 100 nanoseconds, compared to arithmetic operations themselves costing under one nanosecond. If you traverse a data structure in which everything's a pointer, every access may well be a cache miss, especially if the rest of the code is also pointer-heavy and thrashes the cache.

There are no comments on this comment yet.