Builds a `StringViewArray` with `n` strings that are all longer than 12 bytes so they are stored in backing buffers rather than inline.
(n: usize)
| 10798 | /// Builds a `StringViewArray` with `n` strings that are all longer than |
| 10799 | /// 12 bytes so they are stored in backing buffers rather than inline. |
| 10800 | fn make_long_strings(n: usize) -> StringViewArray { |
| 10801 | let mut b = StringViewBuilder::new(); |
| 10802 | for i in 0..n { |
| 10803 | b.append_value(format!("long_string_value_pad_{i:04}")); |
| 10804 | } |
| 10805 | b.finish() |
| 10806 | } |
| 10807 | |
| 10808 | /// Total bytes across all backing buffers of a `StringViewArray`. |
| 10809 | fn utf8view_buffer_bytes(a: &StringViewArray) -> usize { |
searching dependent graphs…