News for hackers. Stuff that matters.
Re:Ryzen Threadripper Pro 3995WX Spotted by FpUser on Friday July 10, 2020 @12:06PM (#23792942)
Not to counter the main argument but CPU loves it some predictable patterns as well.

pattern like the one below will execute up to 10 times faster if array is sorted due to data locality and branch prediction

  sum: float
  a: float array[some_huge_number] 
  fill_array(a, random(1))
  
  for f in a
      if a[i]>0.5
          sum=sum+f

There are no comments on this comment yet.