File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2193,8 +2193,15 @@ where
2193
2193
/// as a [`File`], you will want to apply your own buffering because serde_json
2194
2194
/// will not buffer the input. See [`std::io::BufReader`].
2195
2195
///
2196
+ /// Note that counter to intuition, this function is usually slower than
2197
+ /// reading a file completely into memory and then applying [`from_str`]
2198
+ /// or [`from_slice`] on it. See [issue #160].
2199
+ ///
2196
2200
/// [`File`]: https://doc.rust-lang.org/std/fs/struct.File.html
2197
- /// [`BufReader`]: https://doc.rust-lang.org/std/io/struct.BufReader.html
2201
+ /// [`std::io::BufReader`]: https://doc.rust-lang.org/std/io/struct.BufReader.html
2202
+ /// [`from_str`]: ./fn.from_str.html
2203
+ /// [`from_slice`]: ./fn.from_slice.html
2204
+ /// [issue #160]: https://github.com/serde-rs/json/issues/160
2198
2205
///
2199
2206
/// # Example
2200
2207
///
You can’t perform that action at this time.
0 commit comments