[HN Gopher] Why would a Java prime sieve run at only half its sp...
       ___________________________________________________________________
        
       Why would a Java prime sieve run at only half its speed _some_ of
       the times?
        
       Author : cospaia
       Score  : 11 points
       Date   : 2022-02-05 21:10 UTC (1 hours ago)
        
 (HTM) web link (blog.agical.se)
 (TXT) w3m dump (blog.agical.se)
        
       | cospaia wrote:
       | I'm stumbling onto a strange Java performance irregularity,
       | especially easy to hit with Docker on Linux. A super
       | straightforward implementation of Eratosthenes sieve using a Java
       | BitSet for storage, sometimes drops in performance by 50%. Even
       | more with JDK8. Any JAVA/JDK/JVM experts here that can shed some
       | light on the mystery for me? I've been at it a while, but it is
       | quite a bit outside my field of knowledge, and I am out of ideas
       | for how to proceed. The blog article linked + the Git repository
       | is an attempt to summarize/minimize things.
        
       ___________________________________________________________________
       (page generated 2022-02-05 23:00 UTC)