RandomAccessFile.readLine() much slower than BufferedReader.readLine()

XMLWordPrintable

    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      RandomAccessFile.readLine()'s implementation is rather poor compaerd to BufferedReader, reading a single character at a time, and the resulting performance is horrific.

      Please consider reusing the BufferedReader.readLine() implementation.

      JUSTIFICATION :
      Poor performance that is probably easy to fix.

      Check the following URL:

      http://www.javaworld.com/javaworld/javatips/jw-javatip26.html

      It looks like someone has already found an easy way to improve the performance of RandomAccessfile.readLine() so it should be fairly straightforward to fold this back into the main JDK.

            Assignee:
            Alan Bateman
            Reporter:
            Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: