set removed items to nil

This fixes an issue where the Go garbage collector does not release some
items which have been removed from the BTree because a reference to the
item still exists in the items and children slices.
1 file changed
tree: b0f86a126d51b8877633294baad3b9c862699c32
  1. .travis.yml
  2. btree.go
  3. btree_mem.go
  4. btree_test.go
  5. LICENSE
  6. README.md
README.md

BTree implementation for Go

Travis CI Build Status

This package provides an in-memory B-Tree implementation for Go, useful as an ordered, mutable data structure.

The API is based off of the wonderful http://godoc.org/github.com/petar/GoLLRB/llrb, and is meant to allow btree to act as a drop-in replacement for gollrb trees.

See http://godoc.org/github.com/google/btree for documentation.