aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-10-17 14:35:26 +0200
committerAram Drevekenin <aram@poor.dev>2020-10-17 14:35:26 +0200
commit592eff8c7491a8a620d8e7dec12c46aba121db76 (patch)
tree14ccc8045cefdbb907d829a2d0e8c3085b45f295 /src/tests
parentfeat(scrolling): basic 1-line scroll-up and scroll-down inside a pane (diff)
downloadsl0ppij-592eff8c7491a8a620d8e7dec12c46aba121db76.tar.gz
sl0ppij-592eff8c7491a8a620d8e7dec12c46aba121db76.tar.xz
sl0ppij-592eff8c7491a8a620d8e7dec12c46aba121db76.zip
feat(performance): some improvements by reducing string allocations
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fakes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs
index 9044ef0f..5f3dd1aa 100644
--- a/src/tests/fakes.rs
+++ b/src/tests/fakes.rs
@@ -33,8 +33,8 @@ impl Read for FakeStdinReader {
fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
// ideally, we shouldn't have to sleep here
// stdin should be buffered and handled in the app itself
- // ::std::thread::sleep(Duration::from_millis(50));
- ::std::thread::sleep(Duration::from_millis(100));
+ ::std::thread::sleep(Duration::from_millis(50));
+ // ::std::thread::sleep(Duration::from_millis(100));
let read_position = self.input_chars.read_position;
buf[0] = self.input_chars.content[read_position];
self.input_chars.set_read_position(read_position + 1);