I've been rewritten my Java project to Go and I met a question lately. In
Java, RandomAccessFile is used to do random read, and it's safe to keep
RandomAccessFile instance in memory, with proper close() when it's done.
For Go version, is it a good practise to keep os.File in memory, or should
I allocate one for every read (with buffer enabled of course)?
It's a performance question and I can benchmark myself later...but I'm
wondering if anyone has some quick suggestion first.
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 firstname.lastname@example.org.
For more options, visit https://groups.google.com/groups/opt_out.