inline PrimitiveArray::value (#329)
diff --git a/arrow/src/array/array_primitive.rs b/arrow/src/array/array_primitive.rs
index d2b3b66..9101865 100644
--- a/arrow/src/array/array_primitive.rs
+++ b/arrow/src/array/array_primitive.rs
@@ -93,6 +93,7 @@
/// # Safety
///
/// caller must ensure that the passed in offset is less than the array len()
+ #[inline]
pub unsafe fn value_unchecked(&self, i: usize) -> T::Native {
let offset = i + self.offset();
*self.raw_values.as_ptr().add(offset)
@@ -103,6 +104,7 @@
/// Note this doesn't do any bound checking, for performance reason.
/// # Safety
/// caller must ensure that the passed in offset is less than the array len()
+ #[inline]
pub fn value(&self, i: usize) -> T::Native {
debug_assert!(i < self.len());
unsafe { self.value_unchecked(i) }