pub struct BatchFileAnalyzer<'a> { /* private fields */ }Expand description
Batch file analyzer for parallel multi-file analysis.
BatchFileAnalyzer processes pre-parsed files in parallel using rayon,
making it efficient for analyzing many files at once (e.g., cold-start analysis).
Implementations§
Source§impl<'a> BatchFileAnalyzer<'a>
impl<'a> BatchFileAnalyzer<'a>
pub fn new(session: &'a AnalysisSession) -> Self
Sourcepub fn analyze_batch(
&self,
files: Vec<ParsedFile>,
) -> Vec<(Arc<str>, FileAnalysis)>
pub fn analyze_batch( &self, files: Vec<ParsedFile>, ) -> Vec<(Arc<str>, FileAnalysis)>
Analyze multiple pre-parsed files in parallel.
Each rayon worker gets its own cloned database snapshot, so concurrent analysis proceeds without lock contention on the session.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BatchFileAnalyzer<'a>
impl<'a> !UnwindSafe for BatchFileAnalyzer<'a>
impl<'a> Freeze for BatchFileAnalyzer<'a>
impl<'a> Send for BatchFileAnalyzer<'a>
impl<'a> Sync for BatchFileAnalyzer<'a>
impl<'a> Unpin for BatchFileAnalyzer<'a>
impl<'a> UnsafeUnpin for BatchFileAnalyzer<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more