Skip to content
  • Jonathan Shahen's avatar
    Speed boost and the ability to handle larger files without having a... · 62c31a09
    Jonathan Shahen authored
    Speed boost and the ability to handle larger files without having a OutOfMemeoryError occurring (this is done by not compiling the string and writing each role to a FileOutputStream)
    
    Comparison between straight FileOutputStream, RandomAccessFile and BufferedWriter:
    FileOutputStream:     convertToTRole (1):   83,476 ms
    BufferedWriter:           convertToTRole (1): 113,001 ms
    RandomAccessFile: convertToTRole (1):   98,838 ms
    62c31a09