ferng / lmax

0 stars 0 forks source link

improve performance while calculating head position #9

Open ferng opened 5 years ago

ferng commented 5 years ago

calculate remainder of slots with a mask of size -1

ferng commented 5 years ago

maybe use a conditional: https://stackoverflow.com/questions/35785615/is-modulo-slow-in-java and ditch the modulo calc in getRealPos(n) use conditional instead