in reply to Any caveats in using unpack to right-trim? Why isn't it advertised more?
usual 290/s -- -87% -92% -95% better 2221/s 666% -- -42% -64% trim 3829/s 1220% 72% -- -38% unpack 6164/s 2026% 178% 61% --
Also, the "better" substitution returns a different output for strings containing only whitespace.
|
|---|