-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Gave this a go with our patterns which are processing a huge file of log entries and it's unfortunately significantly slower.
It could be I need a config but thought you would be interested in the example.
The code uses these regexps:
idPattern: regexp.MustCompile(`^(\d+|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-fA-F]{32})$`),
phpPattern: regexp.MustCompile(`^/.*[\w-]+\.php`),It uses a simple:
idPattern.MatchString(path)
phpPattern.MatchString(path)With core regexp it takes ~1m21s to process 10m lines, with coregex it takes 1m35s.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working