1
Aside from other suggestions which make sense, one simple thing to try is to use Aalto-xml parser from:
https://github.com/FasterXML/aalto-xml
it implements Stax API (as well as Stax2 extension, SAX); and as long as you do not need full DTD handling (which I suspect you don't) has the feature set you need.
For common read use cases I think it can be 30-40% ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
stream × 293java × 110
c++ × 83
c# × 53
io × 19
performance × 18
file × 18
strings × 15
c++11 × 13
lambda × 13
beginner × 12
algorithm × 10
functional-programming × 10
c++14 × 10
socket × 10
c × 9
parsing × 9
formatting × 9
serialization × 9
javascript × 8
node.js × 8
tcp × 7
python × 6
.net × 6
console × 6