|P is for Practical|
Re^4: A locale independent sprintf?by swl (Priest)
|on Jul 29, 2020 at 04:06 UTC||Need Help??|
Good point. I'll see if I can set up some benchmarking and post the results.
Running the code below under ubuntu bash under windows with LC_NUMERIC set to de_DE.iso88591 indicates that s///r is about 20% faster than y//r. Both are in the order of millions per second, though.
And as yet another update, the order does switch between runs so it's not a consistent outcome.
(post was further updated to distinguish results from code)