Commit 62697df
Add performant impl for string upcase/downcase
The existing implementation with binary comprehensions turned
out to be slower than the other modes.
The current implementation is >= 2.5X faster than the earlier
implementation.
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>:ascii mode (#7680)1 parent 132b80a commit 62697df
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
| 647 | + | |
650 | 648 | | |
651 | 649 | | |
652 | 650 | | |
653 | 651 | | |
654 | 652 | | |
655 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
656 | 660 | | |
657 | 661 | | |
658 | 662 | | |
| |||
700 | 704 | | |
701 | 705 | | |
702 | 706 | | |
703 | | - | |
704 | | - | |
705 | | - | |
| 707 | + | |
706 | 708 | | |
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
710 | 712 | | |
711 | 713 | | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
712 | 720 | | |
713 | 721 | | |
714 | 722 | | |
| |||
0 commit comments