@JakeGoulding It often takes over 2 minutes to parse a XML file with sxd_document. Am I doing some obvious mistake?
https://github.com/CryZe/livesplit-core/blob/master/src/parser/livesplit.rs …
-
-
Replying to @CryZe107 @JakeGoulding
It may be related to the sxd_xpath usage (which is probably overkill if I just want to access a certain child node).
1 reply 0 retweets 0 likes -
Replying to @CryZe107 @JakeGoulding
Looks it really might be. document_order_first() takes 10ms every time it's getting executed: https://github.com/CryZe/livesplit-core/blob/07d3c41b4e06853e64efbfa4c4bb9fc5b12ccfe1/src/parser/livesplit.rs#L98 …
2 replies 0 retweets 0 likes -
Replying to @CryZe107 @JakeGoulding
So overall that's ~85% of the parsing time:pic.twitter.com/GmuFxnXsQR
2 replies 0 retweets 0 likes -
Replying to @CryZe107 @JakeGoulding
Alright, getting rid of document_order_first() and the xpath crate too reduced parsing time from >5 min to ~3 seconds :D
3 replies 0 retweets 0 likes
Speeding up sxd_document is something I want to do. I can parse an XML token in like 700 ns (IIRC), but the allocations kill me.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.