Is there an equivalent to reading from /dev/zero, and/or mmapping huge
chunks of virtual memory with no backing device, and no write access to use
as sources of zeroed data in the Go standard library? Anywhere else?

Currently I have several packages that have little snippets of default
initialized arrays/byte slices that they use for the personal requirements,
but that seems potentially wasteful when they'll all in Go result in
read/writeable page allocations somewhere at run time.

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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupgolang-nuts @
postedMar 13, '15 at 9:37a
activeMar 13, '15 at 12:50p

2 users in discussion

Konstantin Kulikov: 1 post Matt Joiner: 1 post



site design / logo © 2022 Grokbase