in reply to Re^6: How can I do a numeric sort on a substring? (context matters)
in thread How can I do a numeric sort on a substring?

One of the reasons Sort::Key::Natural is relatively slow is because it tries to be correct!

For instance, it can handle arbitrarily large numbers or Unicode.

  • Comment on Re^7: How can I do a numeric sort on a substring? (context matters)

Replies are listed 'Best First'.
Re^8: How can I do a numeric sort on a substring? (context matters)
by swl (Prior) on Jun 28, 2021 at 09:45 UTC

    Agreed. A general solution that is correct for many cases is unlikely to be faster than a specialist solution that works for only one input configuration, such as is being tested here.