diff options
| author | Joao Fernandes <joao@hopin.to> | 2021-09-02 15:53:01 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-27 15:23:04 +0900 |
| commit | 05a28ce5b11d0e0ca48bae799ef65e9657dc4f6a (patch) | |
| tree | 9820c4f57a143a26f4ecb2c118f28674e20ef44f /include/ruby | |
| parent | f7ffe9dbdeb2bebb4c9155fc391f0bab198bfb51 (diff) | |
[ruby/base64] Improve Base64.urlsafe_encode64 performance
Improves the method's performance when asked to remove padding.
str.delete!("=") iterates over the entire string looking for the equals
character, but we know that we will, at most, find two at the end of the
string.
https://github.com/ruby/base64/commit/544e0c2cf7
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
