developerdino / ProfanityFilter

A simple PHP class to test if a string has a profanity in it.
70 stars 27 forks source link

Add file caching of regular expressions #40

Open developerdino opened 4 years ago

developerdino commented 4 years ago

Currently all regular expressions are generated on each request. This seems like there is opportunity to speed things up a bit. As word lists don't change often, generating the regexs for a particular config should be fairly easy.