madvise(ptr, len, MADV_SEQUENTIAL)
Alan Bateman
Alan.Bateman at Sun.COM
Wed Jun 17 02:19:56 PDT 2009
Jason Rutherglen wrote:
> Alan,
>
> Do you think something like FileDescriptor.setAdvise (mirroring
> posix_fadvise) makes sense?
>
> -J
Something like a posix_fadvise would be more appropriate for FileChannel
or maybe as a usage hint when opening the file (the new APIs for opening
files are extensible to allow for additional options in the future or
even implementation specific options). I don't think we've had much
interest in doing this, maybe because it would be a no-op on many
operating systems.
-Alan.
More information about the nio-discuss
mailing list