http://llvm.org/bugs/show_bug.cgi?id=20999

            Bug ID: 20999
           Summary: Command line parsing is slow
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

I was looking at why test/Driver/response-file.c is slow. I found that given
300_000 options (just repeated -DTEST), the driver will call 
llvm::opt::Option::matches about 349_802_000 times.

To reproduce, add a counter to llvm::opt::Option::matches and run

/bin/clang -E @..../response-file.c.tmp.1.txt response-file.c  -###

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to