sjshuck / hs-pcre2

Complete Haskell binding to PCRE2
Apache License 2.0
12 stars 2 forks source link

Many-hit matchAll on large subject is slow #11

Open sjshuck opened 3 years ago

sjshuck commented 3 years ago

Details here.

sjshuck commented 3 years ago

Profiling reveals slice is slow, and it's Text.copy's fault. A hacked version where all slices are thin is orders of magnitude faster.

sjshuck commented 2 years ago

Manually testing this with 2.0.2 shows it's a problem again. Since when, I don't know. EDIT: It was 2.0.2 exactly that introduced the regression.