pub struct PerfConfig {
pub simd_enabled: bool,
pub simd_row_threshold: usize,
pub zero_copy_enabled: bool,
pub prewarm_enabled: bool,
pub prewarm_count: usize,
pub plan_cache_enabled: bool,
pub plan_cache_capacity: usize,
pub plan_cache_ttl_ms: u64,
}Expand description
性能加速配置(v7.3.0)
统一驱动 SIMD 向量化、零拷贝序列化、连接池预热、查询计划缓存四项加速能力。 所有加速开关默认 false(plan_cache_enabled 默认 true 保持既有行为), 不改变 v7.2.0 既有行为。
Fields§
§simd_enabled: bool是否启用 SIMD 向量化加速
simd_row_threshold: usizeSIMD 批量处理最低行数阈值(低于此值走标量路径)
zero_copy_enabled: bool是否启用零拷贝序列化
prewarm_enabled: bool是否启用连接池预热
prewarm_count: usize预热连接数
plan_cache_enabled: bool是否启用查询计划缓存
plan_cache_capacity: usize计划缓存容量
plan_cache_ttl_ms: u64计划缓存 TTL(毫秒)
Implementations§
Trait Implementations§
Source§impl Clone for PerfConfig
impl Clone for PerfConfig
Source§fn clone(&self) -> PerfConfig
fn clone(&self) -> PerfConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfConfig
impl Debug for PerfConfig
Auto Trait Implementations§
impl Freeze for PerfConfig
impl RefUnwindSafe for PerfConfig
impl Send for PerfConfig
impl Sync for PerfConfig
impl Unpin for PerfConfig
impl UnsafeUnpin for PerfConfig
impl UnwindSafe for PerfConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more