This commit is contained in:
Edgar 2022-01-06 10:50:35 +01:00
parent f33cf4ca14
commit 7e326951a7
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85

View file

@ -83,7 +83,7 @@ Here entry implements Read too, in our case each entry is a json file, we could
let data: ServerList = simd_json::from_reader(entry).expect("parse json");
```
This way, we are parsing each file efficiently while using almost no RAM thanks to the streaming nature of these operations.
This way, we are parsing each file efficiently while using almost no memory thanks to the streaming nature of these operations.
This all fits really well thanks to the design of [Read](https://doc.rust-lang.org/std/io/trait.Read.html) and [Write](https://doc.rust-lang.org/std/io/trait.Write.html).