https://bugzilla.wikimedia.org/show_bug.cgi?id=48378

--- Comment #3 from François <[email protected]> ---
(In reply to comment #2)
Thank you for your response!
> Any reason? In some quick testing here, they're both about the same speed
> (180-200µs each).
It is nice then! I was thinking that
- having 1 more argument
- and replacing the match in the string in place of simply returning it
would consume more resources. But it is probably optimised internally by Lua...
> 
> OTOH, that would require callers to know whether they should call
> mw.text.trim
> or mw.text.utrim.
Yes, like they have to choose between string or ustring library

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to