Antoine Pitrou created ARROW-7785: ------------------------------------- Summary: [C++] sparse_tensor.cc is extremely slow to compile Key: ARROW-7785 URL: https://issues.apache.org/jira/browse/ARROW-7785 Project: Apache Arrow Issue Type: Bug Components: C++ Reporter: Antoine Pitrou
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|https://github.com/aras-p/ClangBuildAnalyzer] I get the following results: {code} **** 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 {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)