[LLVMbugs] [Bug 20999] New: Command line parsing is slow

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 19 06:08:24 PDT 2014


            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: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, rnk at google.com
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140919/fd0868ca/attachment.html>

More information about the llvm-bugs mailing list