boltdb/bolt — pull request #172 by benbjohnson (2014-05-23 16:42:27+00:00)
Title: Remove allocations from read-only buckets.

## Overview

Subbuckets are currently being tracked and cached by the parent bucket using a map. However, this is only necessary for write transactions since they need to be able to track dirty subbuckets. This caching causes the bucket and the map to be created on the heap which kills performance when performing iteration over a large number of subbuckets.

## Changes

This pull request makes two changes:

* Remove unnecessary bucket-related allocations on read-only transactions.

* Add `seq-nest` and `rnd-nest` write modes for `bolt bench`.

See line notes below for additional details.

/cc @snomore @mkobetic