Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-332

Improve tailer's reading performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4
    • None
    • None

    Description

      Now, Tailer triggers a lot of calls to the underlying runtime system, that is, RandomAccessFile.read(), a native method that returns the next byte of the file. This approach is too slow to meet our need. The performance can be improved by using a large buffer, that is using RandomAccessFile.read(byte[]). Then Tailer only rarely accesses the underlying system.

      Attachments

        1. IO-332-1.diff
          5 kB
          Liyin Liang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liangly Liyin Liang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: