Shopify reports 3.96× speedup in TreeWalker delivery-model test
The open-source Rust engine evaluates shared inputs such as carrier and package weight once for the candidate arrival dates that reach the same test.
Shopify reported an internal benchmark for TreeWalker, its open-source Rust engine for running trained decision trees. The company said TreeWalker scored its delivery-date model 3.96 times as fast as its existing evaluator, using the same training and trees and returning the same results.
The benchmark measured model scoring alone. Shopify gave no hardware or baseline configuration for the comparison, and independent replication remains unconfirmed.
Shopify says each shipping method it scores at checkout gets a delivery forecast. For each candidate date, the model estimates the chance of arrival assuming the package didn’t arrive earlier. Each date gets its own input row. The days ahead and calendar inputs can change from row to row, while carrier and package weight stay fixed.
Each decision tree runs through a series of tests to reach a score. When a tree tests a fixed input such as package weight, TreeWalker answers once for all the rows that reach that test. Trees that start with the same tests on fixed inputs can share those answers too.
TreeWalker can also reuse work on inputs that vary. In Shopify’s simplified example, two trees test whether the forecast date is at most six days away. TreeWalker marks which rows pass and reuses those marks in both trees. It checks the marks for the rows that reach the test, skips branches that no rows take and keeps a separate score for each date.
In separate experiments on public datasets, the authors compared grouped scoring with TreeWalker’s own row-by-row scoring. Shopify’s Rust implementation supports models trained with LightGBM and XGBoost and is available under the MIT license.
More news

Cisco and Thales Alenia Space partner to design orbital computing infrastructure

Anthropic brings Claude to customer data centers through AWS AI Factories

AMD and HPE expand AI partnership with Helion rack
