Skip to content

Commit

Permalink
Switch to a faster Brotli crate
Browse files Browse the repository at this point in the history
  • Loading branch information
johannhof committed Jul 1, 2016
1 parent 0ae07e0 commit 7890440
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/net/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ path = "lib.rs"

[dependencies]
bitflags = "0.7"
brotli = {git = "https://github.com/ende76/brotli-rs"}
brotli = "1.0.6"
content-blocker = "0.2"
cookie = { version = "0.2.5", features = ["serialize-serde", "serialize-rustc" ] }
device = {git = "https://github.com/servo/devices"}
Expand Down
2 changes: 1 addition & 1 deletion components/net/http_loader.rs
Expand Up @@ -570,7 +570,7 @@ impl StreamedResponse {
Decoder::Deflate(DeflateDecoder::new(response))
}
Some(Encoding::EncodingExt(ref ext)) if ext == "br" => {
Decoder::Brotli(Decompressor::new(response))
Decoder::Brotli(Decompressor::new(response, 1024))
}
_ => {
Decoder::Plain(response)
Expand Down
14 changes: 11 additions & 3 deletions components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions ports/cef/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7890440

Please sign in to comment.