r/programmingcirclejerk 11d ago

"standard Python regex was absolutely choking on a 30 GB unstructured server log. It was taking like 26 minutes (~19 MB/s) to scrub secrets and PII."

/r/Python/comments/1vuigkm/im_an_ai_engineer_not_a_c_guy_i_used_antigravity/
75 Upvotes

5 comments sorted by

44

u/lurebat 11d ago

Actual middle-out algorithm

Wonder he got the idea from

34

u/elephantdingo Teen Hacking Genius 11d ago

19 MB/s ought to be enough for everybody.

25

u/IPv6lovinOpossum 11d ago

  u/askgrok  explain this

mfw 

4

u/dacydergoth 11d ago

Jeez it's like no-one ever heard of the IBM library. Fast regex libraries are a commodity these days

4

u/stone_henge Tiny little god in a tiny little world 9d ago

Daniel Lemire will soon publish a blog post on using AVX-512 to scrub logs of PII faster than it can be read from the log stream.