Lessons Learned From Code Scanning at Scale
summary
AboutCode is running a license and fingerprint scan over 20+ billion files in Software Heritage, producing tens of terabytes of JSON results and facing network latency as the main bottleneck; experiments use a fuse filesystem to present repository trees, profiling yields 20–30% speedup hotspots rather than guessed rewrites, and rewriting tight diffs in native code fixes major slow paths. Plans include a federated metadata store to avoid rescanning identical package versions, a public fingerprint DB for approximate matching, and a tool that flags ~20% strikingly similar AI-like copies.
AI-written summary · about
chapters (15)
- 0:00Introduction and disclaimer
- 1:48About ScanCode and mission
- 2:30Challenges of scanning petabytes
- 4:16Network latency and data issues
- 5:43File naming and blob identification
- 7:10Handling large files and archives
- 7:52File system abstraction approach
- 9:16Testing with smaller datasets
- 9:57Profiling and performance tuning
- 11:19Native code for efficiency
- 12:46Federated code metadata sharing
- 14:13Avoiding redundant scans
- 15:36Expected outcomes and impacts
- 16:42AI-generated code detection
- 17:25Call for support and Q&A
