MCPcopy Create free account
hub / github.com/apache/arrow-rs / array_from_vec

Function array_from_vec

arrow/benches/array_from.rs:30–33  ·  view source on GitHub ↗
(n: usize)

Source from the content-addressed store, hash-verified

28use std::{hint, sync::Arc};
29
30fn array_from_vec(n: usize) {
31 let v: Vec<i32> = (0..n as i32).collect();
32 hint::black_box(Int32Array::from(v));
33}
34
35fn array_string_from_vec(n: usize) {
36 let mut v: Vec<Option<&str>> = Vec::with_capacity(n);

Callers 1

array_from_vec_benchmarkFunction · 0.85

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected