run() now reparses imports and re-walks the AST once per configured --project-packages entry (each ImportTracker.visit() + InheritanceVisitor.visit()), which makes runtime scale linearly with the number of packages. Consider changing ImportTracker to accept a set of project packages and classify internal when source_module in project_packages, so the file is visited only once. #38
run()now reparses imports and re-walks the AST once per configured--project-packagesentry (eachImportTracker.visit()+InheritanceVisitor.visit()), which makes runtime scale linearly with the number of packages. Consider changingImportTrackerto accept a set of project packages and classifyinternalwhensource_module in project_packages, so the file is visited only once.Originally posted by @copilot-pull-request-reviewer in #34 (comment)