textlane 0.7.0

Rust-native text processing pipeline — a unified replacement with native and JavaScript plugins
Documentation
1
2
3
4
5
6
7
8
use std::sync::atomic::Ordering;

use crate::actions::memory::set::RETAINED_MEMORY;

/// The most memory, in bytes, each thread keeps after a document to reuse for the next.
pub fn read_retained_memory() -> usize {
    RETAINED_MEMORY.load(Ordering::Relaxed)
}