summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorAmjad Ben Hedhili <amjadhedhili@outlook.com>2022-09-25 20:23:23 +0100
committerGitHub <noreply@github.com>2022-09-25 15:23:23 -0400
commitf7f375f59d99ab0006d3aab839449e61cc8153c0 (patch)
tree4071e7ab4f2815f9ffaa9c62a8d96d879cd20e1b /lib/impure
parent30bd75e459eb52eb043071d91e333fcb3abacf15 (diff)
downloadNim-f7f375f59d99ab0006d3aab839449e61cc8153c0.tar.gz
Optimize `base64.encodeMime` (#20409)
* Optimize `base64.encodeMime`

* 5x faster for common scenarios, 13x faster if `lineLen` <= encoded
string's length or `newLine` is empty.
* Changed `lineLen`'s type to `Positive` to disallow `0`.

* Fix
Diffstat (limited to 'lib/impure')
0 files changed, 0 insertions, 0 deletions