tsdownsample:面向可扩展可视化的高性能时间序列降采样
tsdownsample: high-performance time series downsampling for scalable visualization
AI总结:
本文提出开源Python包tsdownsample,利用Rust的SIMD指令和多线程优化主流时间序列降采样算法,使运行时间接近CPU内存带宽,为Python生态带来高性能可扩展可视化能力。
摘要:
交互式折线图可视化极大地增强了对大规模时间序列的有效探索。尽管降采样已成为实现大规模数据集高效交互式可视化的成熟方法,但它在大多数可视化工具中并非固有功能。此外,目前没有任何库为知名降采样算法的高性能实现提供便捷接口。为解决这些不足,我们提出了tsdownsample,这是一个专为基于CPU的内存时间序列降采样而设计的开源Python包。我们的库专注于性能和便捷集成,提供领先降采样算法的优化实现。我们通过利用Rust中的底层SIMD指令和多线程能力来实现这一优化。特别是,SIMD指令被用于优化argmin和argmax操作。这种SIMD优化以及一些算法技巧,在提升各种降采样算法的性能方面被证明至关重要。我们评估了tsdownsample的性能,并展示了其与一个成熟可视化框架的互操作性。我们的性能基准测试表明,tsdownsample的算法运行时间接近CPU的内存带宽。这项工作标志着将高性能时间序列降采样引入Python生态系统方面的重要进展,从而实现了可扩展可视化。开源代码可在https://github.com/predict-idlab/tsdownsample获取。
英文摘要:
Interactive line chart visualizations greatly enhance the effective exploration of large time series. Although downsampling has emerged as a well-established approach to enable efficient interactive visualization of large datasets, it is not an inherent feature in most visualization tools. Furthermore, there is no library offering a convenient interface for high-performance implementations of prominent downsampling algorithms. To address these shortcomings, we present tsdownsample, an open-source Python package specifically designed for CPU-based, in-memory time series downsampling. Our library focuses on performance and convenient integration, offering optimized implementations of leading downsampling algorithms. We achieve this optimization by leveraging low-level SIMD instructions and multithreading capabilities in Rust. In particular, SIMD instructions were employed to optimize the argmin and argmax operations. This SIMD optimization, along with some algorithmic tricks, proved crucial in enhancing the performance of various downsampling algorithms. We evaluate the performance of tsdownsample and demonstrate its interoperability with an established visualization framework. Our performance benchmarks indicate that the algorithmic runtime of tsdownsample approximates the CPU's memory bandwidth. This work marks a significant advancement in bringing high-performance time series downsampling to the Python ecosystem, enabling scalable visualization. The open-source code can be found at https://github.com/predict-idlab/tsdownsample
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。