Support zero-copy reading in serde deserializer #328
Labels
enhancement
optimization
Issues related to reducing time needed to parse XML or to memory consumption
serde
Issues related to mapping from Rust types to XML
It seems that the current usage of Reader requires you to copy a lot of bytes from the reader into the buffer. Why is there no way to get access to slices into the original bytes that were provided?
serde, and serde_json allow for Deserializing borrowed data by borrowing into the original content. I can't find out if quick_xml supports it, but I don't think so.
Could I f.e. parse an XML like this:
Into a
HashMap<&str, &str>
? Where the keys and values are references into the original string passed intoReader::from_str
.From the method signature
it seems like all data the events contain is first copied into the buffer and then references there...
The text was updated successfully, but these errors were encountered: