This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "rust_1brc" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
polars = { version = "0.36.2", features = ["csv", "lazy", "nightly", "streaming"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Implementation for the 1 Billion Row Challenge, set here: https://www.morling.dev/blog/one-billion-row-challenge/ | |
use std::collections::BTreeMap; | |
use std::fmt::{Display, Formatter}; | |
use std::fs::File; | |
use std::io::{BufRead, BufReader}; | |
use std::str::FromStr; | |
use std::time::Instant; | |
struct Aggregate { |
OlderNewer