性能与算法
A slow gfortran loop that copied an array section on every call
A loop over the rows of a matrix, calling a subroutine with the row a(i, :) on every iteration. Right answer, embarrassing sp…
GOMAXPROCS in a container now follows the CPU limit
Before Go 1.25, GOMAXPROCS defaulted to the logical CPU count of the machine. A container limited to two CPUs on a host with…
try vs catch unreachable compares two different programs
try and catch unreachable don't make the same promise, so timing one against the other measures two different programs. Both…
Column-major loop order in Fortran
Fortran arrays are column-major. a(i,j) and a(i+1,j) are neighbours in memory. a(i,j+1) is a whole column away. So the loop n…
Which build time are you quoting?
Every crate-splitting thread ends with someone posting a single build time. There are two, and they move in different directi…
Does this queue need a cached count?
The only thing the caller ever asks this queue is List.length items > 8, and it asks repeatedly. The queue is one immutable O…