chenkovsky commented on PR #15867: URL: https://github.com/apache/datafusion/pull/15867#issuecomment-2834018098
I tested shared concurrent hashset(DashSet) to avoid clone, but no performance gain. something like ```rust static global_values: LazyLock<DashSet<i64, std::hash::RandomState>> = LazyLock::new(|| DashSet::new()); #[derive(Debug)] pub struct PrimitiveDistinctCountAccumulatorI64 { data_type: DataType, values: &'static DashSet<i64, std::hash::RandomState> } impl PrimitiveDistinctCountAccumulatorI64 { pub fn new(data_type: &DataType) -> Self { Self { values: &global_values, data_type: data_type.clone(), } } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org