'in.seek(); in.read()' is certainly better than,
'in = fs.open(); in.seek(); in.read()'

The difference is is exactly one open() call. So you would save an RPC to NameNode.

There are couple of issues that affect apps that keep the handlers open very long time (many hours to days).. but those will be fixed soon.

Raghu.

Stas Oskin wrote:
Hi.

I'm looking to find out, how the InputStream.open() + skip(), compares to
keeping a handle of InputStream() and just seeking the position.

Has anyone compared these approaches, and can advice on their speed?

Regards.


Reply via email to