locus-core 0.4.0

A high-performance fiducial marker detector for robotics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Thread-local workspace arena for per-candidate ephemeral allocations.
//!
//! Shared across sequential pipeline stages (quad extraction, decoding).
//! Each Rayon worker thread owns an independent instance, reset at the
//! start of every candidate iteration.

use bumpalo::Bump;
use std::cell::RefCell;

thread_local! {
    /// Reusable per-thread arena shared across pipeline stages.
    pub(crate) static WORKSPACE_ARENA: RefCell<Bump> =
        RefCell::new(Bump::with_capacity(8 * 1024));
}