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:
1 parent
6133f88d6a
commit
5fa5aef7f3
1 file changed
+2
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user