perf(h1): reduce clock checks for date rendering when pipelined

This commit is contained in:
Sean McArthur
2018-05-30 14:22:08 -07:00
parent ba9b1eaf82
commit 1b5fb3cc5e
4 changed files with 32 additions and 39 deletions

View File

@@ -89,6 +89,7 @@ where
}
fn poll_inner(&mut self, should_shutdown: bool) -> Poll<(), ::Error> {
T::update_date();
loop {
self.poll_read()?;
self.poll_write()?;