diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2024-12-29 00:18:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-29 00:18:14 +0300 |
commit | 40af63902e0af313722dfdc19a6d10a1d2ba29f4 (patch) | |
tree | db577463eb1d0ed8cbc18f32f6050000e2d5b702 /src/lib.rs | |
parent | ebc4a4d7259678a8626f5c269ea9348dfc3e79b2 (diff) | |
download | r-alacritty-vte-40af63902e0af313722dfdc19a6d10a1d2ba29f4.tar.gz r-alacritty-vte-40af63902e0af313722dfdc19a6d10a1d2ba29f4.tar.bz2 r-alacritty-vte-40af63902e0af313722dfdc19a6d10a1d2ba29f4.zip |
Improve attrs_from_sgr_parameters performance
Instead of collecting all the data into the vector just dispatch it
right away avoiding allocations.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ const MAX_OSC_RAW: usize = 1024; struct VtUtf8Receiver<'a, P: Perform>(&'a mut P, &'a mut State); -impl<'a, P: Perform> utf8::Receiver for VtUtf8Receiver<'a, P> { +impl<P: Perform> utf8::Receiver for VtUtf8Receiver<'_, P> { fn codepoint(&mut self, c: char) { self.0.print(c); *self.1 = State::Ground; |