FAQ
How about something like this:

var pools []*[65536]record
var free []uint32 // index to pools, (highIdx, lowIdx)

var small_clusters map[[64]byte][8]uint32
var big_clusters map[[64]byte][]uint32

There is no pointer in `pools` and `small_clusters`, few pointers in
`free` and `big_clusters`

On Thu, Feb 19, 2015 at 7:33 AM, 'Dmitry Vyukov' via golang-dev
wrote:
On second thought, if you need to keep some elements adjacent in the
slice, then it won't works, because holes can be not large enough to
fit new clusters.

--
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.


--
  - Davies

--
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 | 17 of 18 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedFeb 11, '15 at 11:27p
activeFeb 20, '15 at 6:47a
posts18
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase