debug streaming length computation