[TR-143] BitFileBuffered creates unnecessary byte arrays Created: 02/Feb/11 Updated: 05/Apr/11 Resolved: 31/Mar/11
|Reporter:||Craig Macdonald||Assignee:||Craig Macdonald|
BitFileBuffered creates a new byte every time it reads more from disk. Memory allocations in java are expensive, and further GC overheads are introduced. It would be better to either clear it, or even better let it be overwritten by the inBuffer.read() call. Much unit testing would be required.
|Comment by Craig Macdonald [ 17/Feb/11 ]|
|Comment by Craig Macdonald [ 31/Mar/11 ]|
This has been in use for a while without adverse affects. Committing and resolving.