Disable newline splitting in output processing

In a couple of quick tests, this doesn't seem to break cat'ing
the emoji test data so it seems like it isn't needed anymore.

In addition, it removes a bottleneck from processing image
streams produced by timg, which tend to be very large with
new newlines.

With this change, I'm able to view a 25fps source video at
about 60fps.

refs: https://github.com/wez/wezterm/issues/537
This commit is contained in:
Wez Furlong committed 2021-03-13 14:23:36 -08:00
1 parent 6133f88d6a
commit 5fa5aef7f3
1 file changed
+2
+2
View File
@@ -90,11 +90,13 @@ fn accumulator(pane_id: PaneId, dead: &Arc<AtomicBool>, rx: Receiver<Vec<u8>>) {
buf.append(&mut data);
while !buf.is_empty() {
/*
if let Some(idx) = buf.iter().rposition(|&b| b == b'\n') {
let mut split = buf.split_off(idx + 1);
std::mem::swap(&mut split, &mut buf);
send_to_mux(pane_id, &dead, split);
}
*/
match rx.try_recv() {
Ok(mut extra) => {