| Crates.io | novtb |
| lib.rs | novtb |
| version | 0.1.7 |
| created_at | 2025-06-06 15:56:48.382942+00 |
| updated_at | 2025-12-06 23:00:07.69413+00 |
| description | Simple Zoned Data-Parallelism with Core Affinity |
| homepage | https://github.com/awxkee/novtb |
| repository | https://github.com/awxkee/novtb.git |
| max_upload_size | |
| id | 1703209 |
| size | 33,939 |
novtb provides a lightweight, brute-force data-parallel execution model with support for core pinning (CPU affinity). It's useful for workloads where threads should be pinned to specific cores for improved cache locality or performance consistency.
let pool = novtb::ThreadPool::new(thread_count as usize);
pool.parallel_for(|thread_index| {
// Perform thread-specific heavy work here
);
let pool = novtb::ThreadPool::new(thread_count as usize);
dst.tb_par_chunks_mut(dst_stride as usize * tile_size)
.for_each_enumerated(&pool, |cy, dst_rows| {
// Process a tile at row 'cy' in 'dst_rows'
});
This project is licensed under either of
at your option.