Make std.utf.toUTF8 DRY by using byUTF internally#4640
Make std.utf.toUTF8 DRY by using byUTF internally#4640andralex merged 6 commits intodlang:masterfrom
Conversation
|
Benchmarks please |
Due to the lack of a fast track for ASCII in I will open a PR with a ASCII case in |
|
ping @DmitryOlshansky |
|
Then we have to add fast path for ASCII in byUTF |
|
Needs #4642 |
|
Numbers with latest change |
|
Interesting thing to note: Having even a couple UTF characters in your string causes the performance of the original to drop like a rock. While the ASCII-only situation with the new code is significantly worse, having even a few unicode characters in your string will mean you will get a ~45% speed increase. This benchmark uses the changes in #4642 |
|
Will squish the commits if this is approved |
Current coverage is 88.68% (diff: 66.66%)@@ master #4640 diff @@
==========================================
Files 121 121
Lines 73827 73810 -17
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 65471 65457 -14
+ Misses 8356 8353 -3
Partials 0 0
|
|
Auto-merge toggled on |
|
@JackStouffer great, please finish |
|
Doc failure seems unrelated |
pureapplication