| commit | 6b48112103bb7b87fc360d72fe9d5316f4ff2364 | [log] [tgz] |
|---|---|---|
| author | Charlie Harrison <[email protected]> | Tue Nov 22 23:49:39 2022 |
| committer | Copybara-Service <[email protected]> | Tue Nov 22 23:53:56 2022 |
| tree | 4556551c5591b717d678bdc1ed7665b9c7909ded | |
| parent | e6c97adcac7eedd2ae76ed803fbddb24d53f5b96 [diff] |
Add non-null terminating variant of modp_b64_encode Some primitives in Blink (e.g. StringBuffer) require an O(n) allocation if we shrink their size even by 1 character. This would mean adopting modp_b64 in Blink code would cause a perf regression. For now, this CL simply adds a variant which does not add the null terminator. Bug: 1383507 Change-Id: I405bc231db7155d343b1c42dda74e8189d6d1546 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4027430 Reviewed-by: Peter Kasting <[email protected]> Reviewed-by: danakj <[email protected]> Reviewed-by: Jordan Bayles <[email protected]> Commit-Queue: Charlie Harrison <[email protected]> Cr-Commit-Position: refs/heads/main@{#1074948} NOKEYCHECK=True GitOrigin-RevId: 39d5332257b3e5ef44f15ad0d9a5fa43bf8cc240