Naive Rust: A Reference Implementation

  • Our Rust reference implementation will read 900 million trade rows from a CSV file and compute the aggregation query in single-threaded, relatively simple fashion

In this chapter, we're building our Rust reference implementation.

The resulting program will read in the trades data from a CSV source file and calculate the query, writing the results to an output CSV file.

Performance isn't the primary concern here. This program is being built for us to compare the future, optimized implementations against -- both for output and performance. In that sense, it's important we can be confident that this reference implementation is correctly calculating the query results.