revert sizeOf to avoid regression issues with 2.4.x branch