Skip to content
  • Schuhbaeck, Stefan's avatar
    Use BufferedReader instead of ReadAllLines. · 0dc448df
    Schuhbaeck, Stefan authored
    It seems to be more efficient in a small test.
    Time measured in nanoseconds in a loop (3x).
    
    (postvis.trajectories)  readTextFile:   139179300
    (postvis.trajectories)  readTextFile2:   52790478 <-- new
    (test_postvis.scenario) readTextFile3:    4355102
    (test_postvis.scenario) readTextFile4:    1037918 <-- new
    ---------------------------------------------------------
    (postvis.trajectories)  readTextFile:    37730947
    (postvis.trajectories)  readTextFile2:    7910077 <-- new
    (test_postvis.scenario) readTextFile3:    6125829
    (test_postvis.scenario) readTextFile4:     484034 <-- new
    ---------------------------------------------------------
    (postvis.trajectories)  readTextFile:    22605907
    (postvis.trajectories)  readTextFile2:    6541635 <-- new
    (test_postvis.scenario) readTextFile3:     688422
    (test_postvis.scenario) readTextFile4:     415274 <-- new
    ---------------------------------------------------------
    0dc448df