in reply to Re^5: How can I do a numeric sort on a substring? (context matters)
in thread How can I do a numeric sort on a substring?
++ Many thanks for tracking down the problem. Much appreciated.
The results are now more in line with what I would have expected. I see that Perl's string handling function, substr, outstrips the regex solutions: I have been recommending, for a very long time, that string functions be chosen over regexes (where they provide equivalent functionality).
I should probably add some ST routines (e.g. STss, STmcs) to see how they fare; for instance, would GRTpe be faster than STss. I'm currently at $work, so I can't do that now; I'll look into it this evening (i.e. ~8-10hrs hence).
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How can I do a numeric sort on a substring? [Benchmark: reworked and extended]
by kcott (Archbishop) on Jun 28, 2021 at 08:21 UTC | |
by swl (Prior) on Jun 28, 2021 at 09:49 UTC |