On Thu, Oct 19, 2017 at 8:32 AM, Sokolov Yura <funny.fal...@gmail.com>
wrote:

> Why io is not buffered?
> https://github.com/go-hep/hep/blob/master/rootio/file.go#L95
>
> Use bufio
>

that was also my first knee-jerk reaction.
but I can't do that:
the reader needs to implement io.Reader, io.ReaderAt and io.Seeker.
bufio.Reader doesn't implement the last two.

that's why I've implemented (in another branch) a little reader that just
call ioutil.ReadFile, works off the raw []byte and the implements the above
3 interfaces.
but I didn't notice any improvements overall.

-s

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to