Browse Source

Lower serve latency

Closes #554
index-subcmd
Vincent Prouillet 5 years ago
parent
commit
c441f5e857
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      CHANGELOG.md
  2. +1
    -1
      src/cmd/serve.rs

+ 2
- 0
CHANGELOG.md View File

@@ -3,6 +3,8 @@
## 0.6.0 (unreleased)

- Add support for content in multiple languages
- Lower latency on serve before rebuilding from 2 to 1 second
- Allow processing PNG and produced images are less blurry

## 0.5.1 (2018-12-14)



+ 1
- 1
src/cmd/serve.rs View File

@@ -176,7 +176,7 @@ pub fn serve(
let mut watching_static = false;
let mut watching_templates = false;
let (tx, rx) = channel();
let mut watcher = watcher(tx, Duration::from_secs(2)).unwrap();
let mut watcher = watcher(tx, Duration::from_secs(1)).unwrap();
watcher
.watch("content/", RecursiveMode::Recursive)
.chain_err(|| "Can't watch the `content` folder. Does it exist?")?;


Loading…
Cancel
Save