in reply to Re^5: using bits to print part of a string (Bitops win by an order of magnitude)
in thread using bits to print part of a string
Ok, ok, ok, now I know why you kicked it out. ;-)
Anyway, thank you for giving it a try. The only thing I've seen for improvment is to build the regex like some of the other solutions, so not every hit character is a regex pattern, but consecutive characters build one regex.
Investigating this rises a point of criticism in your benchmark: You don't have one mask for all tests. And the way some solutions depend on the pattern of the mask has an influence on the performance, e.g. Think of the substrref solution with a pattern '1' x 400_000.
Have a nice sunday
McA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: using bits to print part of a string (Bitops win by an order of magnitude)
by BrowserUk (Patriarch) on Mar 17, 2013 at 10:20 UTC | |
by McA (Priest) on Mar 17, 2013 at 16:18 UTC |