sourcegraph / srclib

srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go and Java, with Python, JavaScript, and Ruby in beta) with a common output format, and a CLI tool for running the analysis.
https://srclib.org
Other
942 stars 62 forks source link

toolchain.List: don't search for nested toolchains #95

Closed sqs closed 9 years ago

sqs commented 9 years ago

Searching for nested toolchains takes a long time because it means traversing into toolchains' build/temp dirs. It's a reasonable expectation that toolchains won't be nested. This speeds up src make and src makefile from 15s to ~100ms on a repository with 50 source units.