in reply to Recommendations for efficient data reduction/substitution application
You need to put the different match clause into a long or-chain.
The replace-part has to identify which regex matched.
Further more you should benchmark how expensive replacements are on longer chunks.
A sliding window technique could be the answer.
Hmm... Could you identify where the bottleneck really is by benchmarking match and replace independently?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recommendations for efficient data reduction/substitution application
by BrowserUk (Patriarch) on Mar 05, 2015 at 12:57 UTC |