Skip to content

Faster implementations of standard library operations like find, filter, position etc.

Notifications You must be signed in to change notification settings

LaihoE/SIMD-itertools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMD-accelerated iterators

crates.io

Change:

arr.iter().contains()

To:

arr.iter().contains_simd()

Currently the following are implemented:

find filter position contains eq min/max is_sorted all_equal

And works for slice iterators of types: u8,u16,u32,u64,i8,i16,i32,i64,f32,f64,isize,usize

🔥🚀 Performance gain compared to the standard library 🚀🔥

Performance gain of compared to std implementation (u32) You can expect similar performance across the functions.

Requires nightly for now 😔:

rustup toolchain install nightly
rustup default nightly
// revert back to stable: rustup default stable

To get the best performance make sure you are compiling with -C target-cpu=native For example:

RUSTFLAGS='-C target-cpu=native' cargo run

About

Faster implementations of standard library operations like find, filter, position etc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages