-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve parsers efficiency #222
Comments
Benchmark TibiaCharactersCharacter
|
TLDR
(Original TLDR at the end of this comment)
While I was working on removing regexes from parsers, I noticed that the speed gain and reduced usage was not as much as I expected it to be. So I decided to rework the parsers completely, instead of just removing regexes.
For more complex parsers, such as the character one, I'm gonna start by removing the regexes and later try to rewrite it completely. As this is a far more complex task and removing the regexes is already a huge performance boost for such parsers.
But for boostable bosses, for example, while removing regexes gave a 50% speed boost and reduced allocations by 4% rewriting the parser was relatively simple and gave a 98% speed boost while reducing allocations by almost 100%
Files to remove regex from or rewrite parsers:
TibiaBoostableBossesOverview
TibiaCharactersCharacter
TibiaCreaturesCreature
TibiaCreaturesOverview
TibiaDataUtils
TibiaFansites
TibiaGuildsGuild
TibiaHighscores
TibiaHousesHouse
TibiaHousesOverview
TibiaNews
TibiaSpellsSpell
TibiaWorldsOverview
TibiaWorldsWorld
tibia
Original TLDR
The text was updated successfully, but these errors were encountered: