ran cargo fmt

This commit is contained in:
Fabian Schmidt 2024-08-30 10:00:00 +02:00
parent 7b8943976f
commit 212e595a7e
5 changed files with 12 additions and 8 deletions

View File

@ -1,14 +1,18 @@
use std::thread::available_parallelism;
use clap::Parser;
use colored::Colorize;
use memmap2::Mmap;
use onebrc::implementations::rgk::{find_city_names, format, run_parallel, to_str, Args, Record, S};
use onebrc::implementations::rgk::{
find_city_names, format, run_parallel, to_str, Args, Record, S,
};
use std::thread::available_parallelism;
fn main() {
let args = Args::parse();
let start = std::time::Instant::now();
let filename = args.input.unwrap_or("../../../measurements.txt".to_string());
let filename = args
.input
.unwrap_or("../../../measurements.txt".to_string());
let mmap: Mmap;
let data;
{

View File

@ -5,6 +5,6 @@ pub mod multi_threaded_smol;
pub mod multi_threaded_structured;
pub mod phcs;
pub mod reference_impl;
pub mod rgk;
pub mod single_thread;
pub mod smol;
pub mod rgk;

View File

@ -1,10 +1,10 @@
use crate::models::station_measurements::StationMeasurements;
use crate::utils::{hash, parse};
use memmap2::MmapOptions;
use rustc_hash::{FxBuildHasher, FxHashMap as HashMap};
use std::sync::mpsc;
use std::time::Instant;
use std::{fs::File, thread};
use rustc_hash::{FxHashMap as HashMap, FxBuildHasher};
const DEFAULT_HASHMAP_LENGTH: usize = 10000;

View File

@ -1,9 +1,9 @@
use ptr_hash::PtrHashParams;
use rustc_hash::FxHashSet;
use std::{
simd::{cmp::SimdPartialEq, Simd},
vec::Vec,
};
use rustc_hash::FxHashSet;
type V = i32;