[llvm-bugs] [Bug 29014] New: clang-format takes a long time (~18 s) to process a simple file

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 17 05:38:11 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=29014

            Bug ID: 29014
           Summary: clang-format takes a long time (~18 s) to process a
                    simple file
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16973
  --> https://llvm.org/bugs/attachment.cgi?id=16973&action=edit
Example

Running clang-format trunk on 1780 lines takes about 20 seconds.
I guess we have an algorithm with a too important complexity
$ time clang-format-4.0 -i nsUnicodePropertyData.cpp 
real    0m17.153s
user    0m14.480s
sys    0m2.668s

On a recent and powerful system

The file contains many big arrays.

-- 
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/20160817/016d1a09/attachment.html>


More information about the llvm-bugs mailing list