summary refs log tree commit diff stats
path: root/tools
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 /tools
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 'tools')
0 files changed, 0 insertions, 0 deletions
#n101'>101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144