[refactor] Reduce compilation time by splitting and shortening headers #933
Labels
c++
C++ engineering related
enhancement
Make existing things or codebases better
feature request
Suggest an idea on this project
welcome contribution
Concisely describe the proposed feature
Currently compliling taichi takes too long time can be a great resistance for contributors especially when your work involving common headers like
ir.h
orlang_util.h
(I guess @xumingkuan suffers this most).Describe the solution you'd like (if any)
.h
to.c
, and then.h
only holds function declaration.ir.h
into multiple headers, since only part of the functions are used.Additional comments
It's slowing down recently. Not sure what added to these headers caused this.
TODO: add compile-time test/comparison result here.
Update: I also found that
clang-8
is 5x slower thanclang-7
.The text was updated successfully, but these errors were encountered: