From 72ac3b4685162628a4c8f6135956a4878c046eb6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 3 Nov 2022 15:37:24 -0700 Subject: [PATCH] re-enable hot path optimization --- src/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window.zig b/src/Window.zig index d89a85986..f95965f89 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -1580,7 +1580,7 @@ fn ttyRead(t: *libuv.Tty, n: isize, buf: []const u8) void { // Empirically, this alone improved throughput of large text output by ~20%. var i: usize = 0; const end = @intCast(usize, n); - if (win.terminal_stream.parser.state == .ground and false) { + if (win.terminal_stream.parser.state == .ground) { for (buf[i..end]) |c| { switch (terminal.parse_table.table[c][@enumToInt(terminal.Parser.State.ground)].action) { // Print, call directly.