The subunit reader should not be reading the entire stream contents into buffer on reads. The stream can be quite large (with maybe multi-gigabyte attachments). Reading the entire contents obviously doesn't scale so we should avoid doing this and only read each packet one at a time as we process it.
The subunit reader should not be reading the entire stream contents into buffer on reads. The stream can be quite large (with maybe multi-gigabyte attachments). Reading the entire contents obviously doesn't scale so we should avoid doing this and only read each packet one at a time as we process it.