Skip to content

Conversation

@martinemde
Copy link
Contributor

@martinemde martinemde commented Oct 22, 2025

Phase 1 - Discovery (WalkParallel)

  • Only collect file paths - no I/O
  • Create placeholder ProjectFile with owner: None
  • WalkParallel threads stay fast and unblocked

Phase 2 - Processing (Rayon)

  • After all files discovered, process them in parallel with rayon
  • Call project_file_builder.build() to read files and check cache
  • Rayon's work-stealing thread pool is optimized for I/O-heavy tasks
  • No contention with file discovery

Phase 1 - Discovery (WalkParallel)
  - Only collect file paths - no I/O
  - Create placeholder ProjectFile with owner: None
  - WalkParallel threads stay fast and unblocked
Phase 2 - Processing (Rayon)
  - After all files discovered, process them in parallel with rayon
  - Call project_file_builder.build() to read files and check cache
  - Rayon's work-stealing thread pool is optimized for I/O-heavy tasks
  - No contention with file discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants