summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer
diff options
context:
space:
mode:
authorJoao Fernandes <joao@hopin.to>2021-09-02 15:53:01 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-27 15:23:04 +0900
commit05a28ce5b11d0e0ca48bae799ef65e9657dc4f6a (patch)
tree9820c4f57a143a26f4ecb2c118f28674e20ef44f /spec/ruby/core/integer
parentf7ffe9dbdeb2bebb4c9155fc391f0bab198bfb51 (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 'spec/ruby/core/integer')
0 files changed, 0 insertions, 0 deletions