You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jsoup as part of a data processing pipeline I've built for MediaWiki HTML dumps, using Spark. This involves parsing gigabytes of HTML and works very well. But it occurred to me a that a lot of CPU time is spent reparsing the same HTML over and over, so I was wondering if there's anything to "pre-parse" the HTML (once) into a serialized format which can be read more efficiently. Java's serialization or something like kryo might be an option, or maybe it's worth writing a custom serializer. Any recommendations?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using jsoup as part of a data processing pipeline I've built for MediaWiki HTML dumps, using Spark. This involves parsing gigabytes of HTML and works very well. But it occurred to me a that a lot of CPU time is spent reparsing the same HTML over and over, so I was wondering if there's anything to "pre-parse" the HTML (once) into a serialized format which can be read more efficiently. Java's serialization or something like kryo might be an option, or maybe it's worth writing a custom serializer. Any recommendations?
Beta Was this translation helpful? Give feedback.
All reactions