Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
# define ENCODE_DUMP_PRE() \
unsigned pre_off = bl.length()
+
+// NOTE: This is almost an exponential backoff, but because we count
+// bits we get a better sample of things we encode later on.
# define ENCODE_DUMP_POST(cl) \
do { \
static int i = 0; \
::encode(get_middle(), bl);
::encode(get_data(), bl);
+ // this is almost an exponential backoff, except because we count
+ // bits we tend to sample things we encode later, which should be
+ // more representative.
static int i = 0;
i++;
int bits = 0;