-
Notifications
You must be signed in to change notification settings - Fork 37.7k
refactor: Remove unused includes #16129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Remove unused includes #16129
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Concept ACK, but is this complete? It seems that for example |
@practicalswift Are you finding these manually or is there a static analysis tool that you use? |
7cc1ad2
to
51614da
Compare
@MarcoFalke Oh, good catch! My analysis script was a bit too conservative which made it miss the mentioned removal opportunities. I re-ran the analysis and removed quite a few more unused includes. Thanks for noticing! The removals should be complete now: let me know if you find any completeness counterexamples (false negatives) or removals that look incorrect (false positives) in the updated version! @dongcarl It's a combination of my own |
51614da
to
a15aa52
Compare
a15aa52
to
eca9767
Compare
I think this is great even if incomplete (considering we are in the begin of 0.19). Say goodbye to some fake circular dependencies. utACK eca9767. |
utACK eca9767 If there's a way to automate away this checking (which I think @dongcarl is alluding too), that'd be great. I probably see a slight speedup during compiling. A few iterations of master (c7cfd20) real 0m20.960s
real 0m20.761s
real 0m20.580s
real 0m21.375s
real 0m20.287s This PR (eca9767): real 0m20.914s
real 0m20.643s
real 0m20.321s
real 0m20.049s
real 0m19.920s |
@fanquake It seems you are using |
utACK eca9767 Good to see some heavy unused includes such as net and validation go from wallet et al. Show signature and timestampSignature:
Timestamp of file with hash |
Unless there are objections, this will be merged within the next week or so. |
Not an objection, but I do think that in general we should consider whether any of the conflicting PRs should have priority over pure refactor PRs like this. (I don't have an opinion myself, as I have not reviewed any of the PRs that conflict to see how important they are or how close they are to being merged.) |
I did check them and they are all WIP, test-only or refactoring themselves. |
Memory usage before
Memory usage after
Diffdiff --git a/tmp/a b/tmp/b
index 71c592b9a5..d3402ea013 100644
--- a/tmp/a
+++ b/tmp/b
@@ -2,2 +2,2 @@
-| addrman.cpp | 308212 |
-| arith_uint256.cpp | 72260 |
+| addrman.cpp | 300868 |
+| arith_uint256.cpp | 62044 |
@@ -13 +13 @@
-| clientversion.cpp | 87868 |
+| clientversion.cpp | 87612 |
@@ -19 +19 @@
-| consensus/merkle.cpp | 101224 |
+| consensus/merkle.cpp | 101216 |
@@ -22,3 +22,3 @@
-| core_read.cpp | 413892 |
-| core_write.cpp | 375424 |
-| crypto/aes.cpp | 36584 |
+| core_read.cpp | 331212 |
+| core_write.cpp | 375372 |
+| crypto/aes.cpp | 36304 |
@@ -32 +32 @@
-| crypto/sha256_avx2.cpp | 370964 |
+| crypto/sha256_avx2.cpp | 350716 |
@@ -35 +35 @@
-| crypto/sha256_sse41.cpp | 380744 |
+| crypto/sha256_sse41.cpp | 360612 |
@@ -43 +43 @@
-| httprpc.cpp | 419268 |
+| httprpc.cpp | 419240 |
@@ -48 +48 @@
-| init.cpp | 924328 |
+| init.cpp | 924352 |
@@ -51,3 +51,3 @@
-| interfaces/node.cpp | 619612 |
-| interfaces/wallet.cpp | 845216 |
-| key.cpp | 122092 |
+| interfaces/node.cpp | 533112 |
+| interfaces/wallet.cpp | 708204 |
+| key.cpp | 121412 |
@@ -97,4 +97,4 @@
-| lib/univalue.cpp | 2712 |
-| lib/univalue_get.cpp | 2644 |
-| lib/univalue_read.cpp | 2692 |
-| lib/univalue_write.cpp | 2700 |
+| lib/univalue.cpp | 144548 |
+| lib/univalue_get.cpp | 79124 |
+| lib/univalue_read.cpp | 123936 |
+| lib/univalue_write.cpp | 83164 |
@@ -102,2 +102,2 @@
-| merkleblock.cpp | 123228 |
-| miner.cpp | 545048 |
+| merkleblock.cpp | 123220 |
+| miner.cpp | 521796 |
@@ -105 +105 @@
-| netbase.cpp | 303412 |
+| netbase.cpp | 302472 |
@@ -107 +107 @@
-| net_processing.cpp | 903684 |
+| net_processing.cpp | 903388 |
@@ -114,2 +114,2 @@
-| policy/fees.cpp | 521436 |
-| policy/policy.cpp | 281476 |
+| policy/fees.cpp | 510808 |
+| policy/policy.cpp | 160232 |
@@ -119 +119 @@
-| primitives/block.cpp | 118776 |
+| primitives/block.cpp | 118412 |
@@ -122,2 +122,2 @@
-| psbt.cpp | 323128 |
-| -pthread | 992596 |
+| psbt.cpp | 303900 |
+| -pthread | 979916 |
@@ -127 +127 @@
-| rpc/blockchain.cpp | 847204 |
+| rpc/blockchain.cpp | 845848 |
@@ -130,6 +130,6 @@
-| rpc/misc.cpp | 509676 |
-| rpc/net.cpp | 470636 |
-| rpc/protocol.cpp | 279744 |
-| rpc/rawtransaction.cpp | 840376 |
-| rpc/rawtransaction_util.cpp | 449240 |
-| rpc/server.cpp | 538228 |
+| rpc/misc.cpp | 515044 |
+| rpc/net.cpp | 468504 |
+| rpc/protocol.cpp | 279596 |
+| rpc/rawtransaction.cpp | 839388 |
+| rpc/rawtransaction_util.cpp | 447992 |
+| rpc/server.cpp | 537812 |
@@ -142 +142 @@
-| script/script.cpp | 100584 |
+| script/script.cpp | 97876 |
@@ -144 +144 @@
-| script/sigcache.cpp | 418992 |
+| script/sigcache.cpp | 418276 |
@@ -146 +146 @@
-| script/standard.cpp | 333964 |
+| script/standard.cpp | 247636 |
@@ -148 +148 @@
-| src/secp256k1.c | 15296 |
+| src/secp256k1.c | 90624 |
@@ -168 +168 @@
-| test/coins_tests.cpp | 684284 |
+| test/coins_tests.cpp | 674912 |
@@ -173 +173 @@
-| test/denialofservice_tests.cpp | 677568 |
+| test/denialofservice_tests.cpp | 677660 |
@@ -186,2 +186,2 @@
-| test/miner_tests.cpp | 683808 |
-| test/multisig_tests.cpp | 587852 |
+| test/miner_tests.cpp | 683644 |
+| test/multisig_tests.cpp | 586904 |
@@ -197 +197 @@
-| test/rpc_tests.cpp | 808252 |
+| test/rpc_tests.cpp | 782644 |
@@ -201 +201 @@
-| test/script_p2sh_tests.cpp | 644396 |
+| test/script_p2sh_tests.cpp | 644272 |
@@ -205 +205 @@
-| test/setup_common.cpp | 625408 |
+| test/setup_common.cpp | 625256 |
@@ -212 +212 @@
-| test/torcontrol_tests.cpp | 585648 |
+| test/torcontrol_tests.cpp | 585644 |
@@ -214,2 +214,2 @@
-| test/txindex_tests.cpp | 574132 |
-| test/txvalidationcache_tests.cpp | 639960 |
+| test/txindex_tests.cpp | 568128 |
+| test/txvalidationcache_tests.cpp | 640032 |
@@ -224 +224 @@
-| timedata.cpp | 276120 |
+| timedata.cpp | 275988 |
@@ -226,3 +226,3 @@
-| txdb.cpp | 485644 |
-| txmempool.cpp | 653824 |
-| ui_interface.cpp | 634304 |
+| txdb.cpp | 480384 |
+| txmempool.cpp | 649156 |
+| ui_interface.cpp | 493492 |
@@ -238 +238 @@
-| util/system.cpp | 335012 |
+| util/system.cpp | 334932 |
@@ -243,2 +243,2 @@
-| validation.cpp | 971296 |
-| validationinterface.cpp | 851868 |
+| validation.cpp | 971080 |
+| validationinterface.cpp | 840984 |
@@ -250,4 +250,4 @@
-| wallet/db.cpp | 511924 |
-| wallet/feebumper.cpp | 612368 |
-| wallet/fees.cpp | 485752 |
-| wallet/init.cpp | 637808 |
+| wallet/db.cpp | 491732 |
+| wallet/feebumper.cpp | 506332 |
+| wallet/fees.cpp | 467316 |
+| wallet/init.cpp | 528692 |
@@ -256,2 +256,2 @@
-| wallet/rpcdump.cpp | 861276 |
-| wallet/rpcwallet.cpp | 1332508 |
+| wallet/rpcdump.cpp | 857432 |
+| wallet/rpcwallet.cpp | 1297072 |
@@ -261,2 +261,2 @@
-| wallet/test/init_tests.cpp | 674808 |
-| wallet/test/psbt_wallet_tests.cpp | 855056 |
+| wallet/test/init_tests.cpp | 562384 |
+| wallet/test/psbt_wallet_tests.cpp | 854972 |
@@ -264 +264 @@
-| wallet/test/wallet_test_fixture.cpp | 686740 |
+| wallet/test/wallet_test_fixture.cpp | 680460 |
@@ -266 +266 @@
-| wallet/wallet.cpp | 1284744 |
+| wallet/wallet.cpp | 1162820 |
@@ -269 +269 @@
-| warnings.cpp | 224448 |
+| warnings.cpp | 224348 | |
Thanks for working on this. See related issues:
|
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
@MarcoFalke Thanks for quantifying the results. I want to replicate your numbers: how did you perform the measurements - using |
…uding unused dependencies Summary: bitcoin/bitcoin@eca9767 --- Backport of Core [[bitcoin/bitcoin#16129 | PR16129]] Test Plan: ninja ninja check-all cd .. ./test/lint/lint-circular-dependencies.sh Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Subscribers: Fabien Differential Revision: https://reviews.bitcoinabc.org/D6330
Summary: bitcoin/bitcoin@67f4e9c --- Concludes backport of Core [[bitcoin/bitcoin#16129 | PR16129]] Test Plan: ninja check Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D6331
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13
67f4e9c Include core_io.h from core_read.cpp (practicalswift) eca9767 Make reasoning about dependencies easier by not including unused dependencies (practicalswift) Pull request description: Make reasoning about dependencies easier by not including unused dependencies. Please note that the removed headers are _not_ "transitively included" by other still included headers. Thus the removals are real. As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed: ``` $ git diff -u HEAD~1 | grep -E '^\-#include ' | cut -f2 -d"<" | cut -f1 -d">" | \ sed 's%^%src/%g' | xargs cat | wc -l 51393 ``` Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-) ACKs for commit 67f4e9: Tree-SHA512: 0c8868aac59813f099ce53d5307eed7962dd6f2ff3546768ef9e5c4508b87f8210f1a22c7e826c3c06bebbf28bdbfcf1628ed354c2d0fdb9a31a42cefb8fdf13 Co-authored-by: MarcoFalke <falke.marco@gmail.com>
Make reasoning about dependencies easier by not including unused dependencies.
Please note that the removed headers are not "transitively included" by other still included headers. Thus the removals are real.
As an added bonus this change means less work for the preprocessor/compiler. At least 51 393 lines of code no longer needs to be processed:
Note that 51 393 is the lower bound: the real number is likely much higher when taking into account transitively included headers :-)