Commit 54fff60
authored
perf: improve
## Which issue does this PR close?
N/A
## Rationale for this change
make stuff faster
## What changes are included in this PR?
1. updated Boolean scalar to array to use existing functions for
creating `BooleanArray` with the same value n times
2. Update None `Binary`/`BinaryView`/`FixedSizeBinary`/`LargeBinary` to
use `new_null_array` instead of repeat
## Are these changes tested?
Existing tests
## Are there any user-facing changes?
NopeScalarValue::to_array_of_size for Boolean and some null values (#18180)1 parent a4acec3 commit 54fff60
1 file changed
+16
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
2888 | 2888 | | |
2889 | 2889 | | |
2890 | 2890 | | |
2891 | | - | |
2892 | | - | |
2893 | | - | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
2894 | 2902 | | |
2895 | 2903 | | |
2896 | 2904 | | |
| |||
2973 | 2981 | | |
2974 | 2982 | | |
2975 | 2983 | | |
2976 | | - | |
| 2984 | + | |
2977 | 2985 | | |
2978 | 2986 | | |
2979 | 2987 | | |
2980 | 2988 | | |
2981 | 2989 | | |
2982 | | - | |
2983 | | - | |
2984 | | - | |
| 2990 | + | |
2985 | 2991 | | |
2986 | 2992 | | |
2987 | 2993 | | |
| |||
2991 | 2997 | | |
2992 | 2998 | | |
2993 | 2999 | | |
2994 | | - | |
2995 | | - | |
2996 | | - | |
2997 | | - | |
2998 | | - | |
2999 | | - | |
3000 | | - | |
| 3000 | + | |
3001 | 3001 | | |
3002 | 3002 | | |
3003 | 3003 | | |
3004 | 3004 | | |
3005 | 3005 | | |
3006 | | - | |
3007 | | - | |
3008 | | - | |
| 3006 | + | |
3009 | 3007 | | |
3010 | 3008 | | |
3011 | 3009 | | |
| |||
0 commit comments