Skip to main content

build_entity_index_parallel

Function build_entity_index_parallel 

Source
pub fn build_entity_index_parallel<T>(content: &T) -> EntityIndex
where T: AsRef<[u8]> + ?Sized,
Expand description

Build the entity index (expressId -> byte span) across all available cores.

Byte-identical to ifc_lite_core::build_entity_index over the same content; a drop-in replacement wherever the index is built as a standalone scan on native. On wasm32 it is the serial builder.

Safe to nest under an outer rayon task (it is a pure map-reduce with no locks or channels); rayon work-steals rather than deadlocking. In practice every caller invokes it at the top level, before the per-element geometry par_iter, so no nesting occurs.