Commit 4ef7a45
Use RB_ENC_CODERANGE to first check the cached coderange before calling rb_enc_str_coderange if the coderange is unknown.
1 parent 7dd6b63 commit 4ef7a45
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
822 | 830 | | |
823 | 831 | | |
824 | | - | |
| 832 | + | |
825 | 833 | | |
826 | 834 | | |
827 | 835 | | |
| |||
893 | 901 | | |
894 | 902 | | |
895 | 903 | | |
896 | | - | |
| 904 | + | |
897 | 905 | | |
898 | 906 | | |
899 | 907 | | |
| |||
0 commit comments