I also needed to modify TibiaDataHTMLDataCollector slightly allowing a RawBody flag to be passed to it
If this flag is passed, we pass tibia.com's response directly to the caller instead of creating a document using goquery
This does not interfere with any other parser, because in other for this change to take place the RawBody flag must be specified.
This PR completely rewrites
TibiaBoostableBossesOverviewImpl
The reason behind this rewrite is to stop using regex and goquery. The performance boost is gigantic, reducing allocations from over 8000 to just 3.
I also needed to modify
TibiaDataHTMLDataCollector
slightly allowing aRawBody
flag to be passed to it If this flag is passed, we pass tibia.com's response directly to the caller instead of creating a document usinggoquery
This does not interfere with any other parser, because in other for this change to take place theRawBody
flag must be specified.old.txt
new.txt