Commit 03a6d46
committed
Storable: use utf8_to_bytes_overwrite() if available
This is simpler and saves a malloc each time.
Note that this code could use plain utf8_to_bytes() on older perls, but
it is less convenient, so would require more code; I don't think the
performance gain is worth it.1 parent f5c469a commit 03a6d46
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2960 | 2960 | | |
2961 | 2961 | | |
2962 | 2962 | | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
2963 | 2976 | | |
2964 | 2977 | | |
2965 | 2978 | | |
| |||
2982 | 2995 | | |
2983 | 2996 | | |
2984 | 2997 | | |
| 2998 | + | |
2985 | 2999 | | |
2986 | 3000 | | |
2987 | 3001 | | |
| |||
3000 | 3014 | | |
3001 | 3015 | | |
3002 | 3016 | | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
3003 | 3020 | | |
3004 | 3021 | | |
| 3022 | + | |
3005 | 3023 | | |
3006 | 3024 | | |
3007 | 3025 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments