add feature delayed_buf_reset, which decreases #buf_copy