-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some small optimisations to textutils.urlEncode
This probably isn't useful in practice — nobody is escaping 1MB of data. Right. Right???? But no harm in doing it. - Cache globals as locals. - Remove redundant pattern capture. - Merge string.format calls into one. Also remove the "if str then" check. I assume we accepted nil values a long time ago, but that was broken when we added arg checks. Woops!
- Loading branch information
Showing
2 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters