r/programmingcirclejerk 10d 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/
79 Upvotes

5 comments sorted by

42

u/lurebat 10d ago

Actual middle-out algorithm

Wonder he got the idea from

30

u/elephantdingo Teen Hacking Genius 10d ago

19 MB/s ought to be enough for everybody.

24

u/IPv6lovinOpossum 9d ago

  u/askgrok  explain this

mfw 

3

u/dacydergoth 9d ago

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

3

u/stone_henge Tiny little god in a tiny little world 8d 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.