Rust-Based Random Forest 'Fru' Outperforms scikit-learn by Hundreds of Times

kpiwonski · reddit · 2026-08-11

Researchers have published a highly optimized Rust-based implementation of Random Forest called Fru in the Software X journal, complete with bindings for both Python and R.

In Python environments, Fru outperforms the widely used scikit-learn implementation by several factors, reaching hundreds of times faster in specific scenarios. For R, it is typically a few dozen percent faster than the ranger package, with speedups reaching several times depending on the use case.

Additionally, the tool features a novel implementation of permutation importance for an extra performance boost. Thanks to its layered design, the Python version utilizes Arrow PyCapsule to integrate seamlessly with popular data libraries like pandas, polars, and pyarrow.

Original post →

More from Research

Research channel →