[GRADLEREV-48] RandomAccessFile backed test output read Created: 29/Jul/13 Updated: 02/Aug/13 Resolved: 02/Aug/13 |
|
Status: | Resolved |
Project: | Gradle Code Review Tasks |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Task | Priority: | Major |
Reporter: | Adam Murdoch | Assignee: | Luke Daley |
Resolution: | Fixed | Votes: | 0 |
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. |