Uploaded image for project: 'Gradle Code Review Tasks'
  1. Gradle Code Review Tasks
  2. GRADLEREV-48

RandomAccessFile backed test output read

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None

      Description

      Opening the file and reading from the start of the file for each test(class) is going to be slow. A better implementation would be to use RandomAccessFile and use seek() to skip to the first event. It should also keep the file open until the caller is finished with writing outputs.

      There's a RandomAccessFile backed InputStream implementation in FileBackedBlockStore that we can reuse here.

        Attachments

          Activity

            People

            Assignee:
            ldaley Luke Daley
            Reporter:
            adammurdoch Adam Murdoch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: