dlclark / regexp2

A full-featured regex engine in pure Go based on the .NET engine
MIT License
997 stars 84 forks source link

Match loop cause high CPU usage #70

Closed 0xffffharry closed 1 year ago

0xffffharry commented 1 year ago

go pprof profile file:

pprof.cdns.samples.cpu.001.pb.gz

dlclark commented 1 year ago

Can you add a bit more detail to the ticket? What are the regex pattern, input string, options being used, etc? What behavior occurred and what behavior did you expect? A short unit test to reproduce the issue would be great.

0xffffharry commented 1 year ago

I am looking for the regex pattern, and I will later attach it to this issue.