FAQ

On Wed, Aug 26, 2015 at 7:28 AM, Ingo Oeser wrote:
What about implementing truetype.ParseFrom(io.ReaderAt)?
Well, yes, that's the alternative, but it's still way more awkward
than a []byte. The naive io.ReaderAt implementation results in lots of
syscalls for lots of small reads. A caching io.ReaderAt has mutable
state and needs mutexes, and you have to pick a cache size and an
eviction policy...

Sure, if you use mmap, the kernel has to do that, but the kernel
should already be good at doing that.

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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 14 of 26 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedAug 24, '15 at 11:34p
activeAug 26, '15 at 10:21a
posts26
users9
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase