stepva / chatalysis

Analyse and visualise your chats - currently supporting Facebook Messenger and Instagram
MIT License
25 stars 5 forks source link

Regex & string optimization #79

Closed miskfi closed 2 years ago

miskfi commented 2 years ago

The regexes are now precompiled and I replaced re.sub with str.translate which is generally faster. This commit should bring 20-30% speedup (at least it does on my data).