Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7785

[C++] sparse_tensor.cc is extremely slow to compile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.17.0
    • C++

    Description

      This comes up especially when doing an optimized build. sparse_tensor.cc is always enabled even if all components are disabled, and it takes multiple seconds to compile.

      Using CLangBuildAnalyzer I get the following results:

      **** Files that took longest to codegen (compiler backend):
       66372 ms: build-clang-profile/src/arrow/CMakeFiles/arrow_objlib.dir/sparse_tensor.cc.o
       16457 ms: build-clang-profile/src/arrow/CMakeFiles/arrow_objlib.dir/array/diff.cc.o
        6283 ms: build-clang-profile/src/arrow/CMakeFiles/arrow_objlib.dir/scalar.cc.o
        5284 ms: build-clang-profile/src/arrow/CMakeFiles/arrow_objlib.dir/builder.cc.o
        5090 ms: build-clang-profile/src/arrow/CMakeFiles/arrow_objlib.dir/array/dict_internal.cc.o
      

      Attachments

        Issue Links

          Activity

            People

              mrkn Kenta Murata
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h