Fixed inefficiency and congestion in input channels.
Changed interrupted checking in output channels from per-record to per-buffer.