Lynnesbian / mstdn-ebooks

NO LONGER BEING UPDATED, NOT GUARANTEED TO WORK AT ALL
Mozilla Public License 2.0
35 stars 27 forks source link

precompile regexes #12

Closed SneakyBastardSword closed 5 years ago

SneakyBastardSword commented 5 years ago

changed the regexes in the main.py scraper loop so that they are compiled outside of the loop for improved performance. This way the expressions will not be compiled each time the loop iterates.