+ /* Because Boost interval_map is really bloody slow, implement a
+ * shortcut here. We can remove this once Boost performance
+ * problems have been fixed.
+ */
+ if (h->current.is_read == is_read &&
+ h->current.count == count &&
+ h->current.offset == offset)
+ goto skip_find_range;
+