rust.RustBackend
The Rust parsing backend, at full event parity with PythonBackend.
Usage
rust.RustBackend()Streams files through a rayon thread pool inside the extension module and materializes ~cc_transcript.models.TranscriptEvent objects on the consumer side, draining the stream off the event loop via anyio worker threads.
Methods
| Name | Description |
|---|---|
| parse_batch() | See Backend.parse_batch(). |
parse_batch()
Usage
parse_batch(paths, *, prefetch, spec=None)A portable spec is executed inside Rust (events dropped before materialization); a non-portable one is applied in Python post-parse.