Hacker GitHub

← All repos

hackermondev/batched

View on GitHub ↗ ★ 35 Rust

rust macro util for batching expensive operations

3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2025-08-14 · latest 2025-08-20

Mentions per year 3 mentions · busiest year 2025 (3)
20082026
  1. That's what the `window` option does ( https://github.com/hackermondev/batched?tab=readme-ov-file#b... ). After the first item is added to the buffer, it waits for the maximum window time, then calls the inner function with the buffer fill.
  2. …at build time, but you can set a dynamic window length based on the current buffer length. https://github.com/hackermondev/batched?tab=readme-ov-file#b...