llmcc-bumpalo

Crates.iollmcc-bumpalo
lib.rsllmcc-bumpalo
version0.2.65
created_at2026-01-13 20:01:36.895171+00
updated_at2026-01-13 22:13:39.674129+00
descriptionThread-safe bumpalo wrapper with pre-allocation support. Fork of bumpalo-herd (https://crates.io/crates/bumpalo-herd) with configurable chunk sizes.
homepage
repositoryhttps://github.com/allenanswerzq/llmcc.git
max_upload_size
id2041080
size6,615
allenanswerzq (allenanswerzq)

documentation

README

llmcc-bumpalo

Thread-safe bumpalo wrapper with pre-allocation support.

Origin

This is a fork of bumpalo-herd with configurable initial chunk sizes to reduce malloc pressure in high-throughput scenarios.

Key Differences from bumpalo-herd

  • Configurable initial chunk size per Herd (default: 16MB vs original 1MB)
  • Herd::with_chunk_size() constructor for custom allocation sizes
  • Optimized for llmcc's code parsing workloads

Usage

use llmcc_bumpalo::Herd;

// Default 16MB chunks
let herd = Herd::new();

// Custom 4MB chunks
let herd = Herd::with_chunk_size(4 * 1024 * 1024);

License

Apache-2.0 (same as original bumpalo-herd)

Commit count: 0

cargo fmt