David Tolnay
David Tolnay
I took the larger of the two files in the zip (vendor.js.map) and extended the "mappings" and "sourcesContent" to be each four copies of themselves. The result is 23 MiB....
For those wondering, bincode takes 14ms. ``` rust let mut br = BufReader::new(File::open(path).unwrap()); let lim = bincode::SizeLimit::Infinite; bincode::serde::deserialize_from(&mut br, lim).unwrap() ```
Comments from @erickt in IRC: > One idea I had is we could change serde_json do it's own buffering > I did that for a separate project implementing the google...
Could you point out where this is described in the official spec?
The spec is https://yaml.org/spec/1.2.2. Your link is an old draft proposal which has been abandoned since 17 years ago and has never made it into a spec. I don't think...
I can't reproduce this. Next time please provide a minimal compilable code example when opening an issue. ```rust use serde::Deserialize; use std::collections::BTreeMap; #[derive(Deserialize, Debug)] struct Foo { foos: BTreeMap, }...
I have not gotten a chance, but I would accept a PR if there is a fix in serde_yaml.
Ah, I haven't heard of Deserializer impls pre-allocating storage based on deserialize_struct. Do you have an example of a format like that? Ordinarily it would be the other way around;...
Fixed in 0.9.7.
Seems reasonable, I would accept a PR to implement this.