Closed marschall closed 5 years ago
We can safe a bit of memory if we use Instant instead of FileTime in MemoryEntryFileAttributes.
Instant
FileTime
MemoryEntryFileAttributes
This results in fewer allocations when not all file times are read, for example when only the #size() and #isRegularFile() methods are used.
#size()
#isRegularFile()
This results in slightly higher allocations when the same file time is read multiple times from the same BasicFileAttributes object.
BasicFileAttributes
We can safe a bit of memory if we use
Instant
instead ofFileTime
inMemoryEntryFileAttributes
.This results in fewer allocations when not all file times are read, for example when only the
#size()
and#isRegularFile()
methods are used.This results in slightly higher allocations when the same file time is read multiple times from the same
BasicFileAttributes
object.