Commit 597b8be
committed
Merge bitcoin#34025: net: Waste less time in socket handling
5f5c1ea net: Cache -capturemessages setting (Anthony Towns)
cea443e net: Pass time to InactivityChecks fuctions (Anthony Towns)
Pull request description:
Cuts out some wasted time in net socket handling. First, only calculates the current time once every 50ms, rather than once for each peer, which given we only care about second-level precision seems more than adequate. Second, caches the value of the `-capturemessages` setting in `CConnman` rather than re-evaluating it every time we invoke `PushMessaage`.
ACKs for top commit:
maflcko:
review ACK 5f5c1ea 🏣
vasild:
ACK 5f5c1ea
sedited:
ACK 5f5c1ea
mzumsande:
ACK 5f5c1ea
Tree-SHA512: 0194143a3a4481c6355ac9eab27ce6ae4bed5db1d483ba5d06288dd92f195ccb9f0f055a9eb9d7e16e9bbf72f145eca1ff17c6700ee9aa42730103a8f047b32c4 files changed
+23
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2043 | 2043 | | |
2044 | 2044 | | |
2045 | 2045 | | |
| 2046 | + | |
2046 | 2047 | | |
2047 | 2048 | | |
2048 | 2049 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2000 | 2000 | | |
2001 | 2001 | | |
2002 | 2002 | | |
2003 | | - | |
| 2003 | + | |
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
2008 | | - | |
| 2008 | + | |
2009 | 2009 | | |
2010 | 2010 | | |
2011 | 2011 | | |
2012 | | - | |
2013 | 2012 | | |
2014 | 2013 | | |
2015 | 2014 | | |
| |||
2033 | 2032 | | |
2034 | 2033 | | |
2035 | 2034 | | |
2036 | | - | |
| 2035 | + | |
2037 | 2036 | | |
2038 | 2037 | | |
2039 | 2038 | | |
2040 | 2039 | | |
2041 | 2040 | | |
2042 | 2041 | | |
2043 | 2042 | | |
2044 | | - | |
| 2043 | + | |
2045 | 2044 | | |
2046 | 2045 | | |
2047 | 2046 | | |
| |||
2123 | 2122 | | |
2124 | 2123 | | |
2125 | 2124 | | |
| 2125 | + | |
| 2126 | + | |
2126 | 2127 | | |
2127 | 2128 | | |
2128 | 2129 | | |
| |||
2214 | 2215 | | |
2215 | 2216 | | |
2216 | 2217 | | |
2217 | | - | |
| 2218 | + | |
2218 | 2219 | | |
2219 | 2220 | | |
2220 | 2221 | | |
| |||
3900 | 3901 | | |
3901 | 3902 | | |
3902 | 3903 | | |
3903 | | - | |
| 3904 | + | |
3904 | 3905 | | |
3905 | 3906 | | |
3906 | 3907 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| 1089 | + | |
1089 | 1090 | | |
1090 | 1091 | | |
1091 | 1092 | | |
| |||
1123 | 1124 | | |
1124 | 1125 | | |
1125 | 1126 | | |
| 1127 | + | |
1126 | 1128 | | |
1127 | 1129 | | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1128 | 1133 | | |
1129 | 1134 | | |
1130 | 1135 | | |
| |||
1314 | 1319 | | |
1315 | 1320 | | |
1316 | 1321 | | |
1317 | | - | |
| 1322 | + | |
1318 | 1323 | | |
1319 | 1324 | | |
1320 | 1325 | | |
| |||
1364 | 1369 | | |
1365 | 1370 | | |
1366 | 1371 | | |
1367 | | - | |
| 1372 | + | |
1368 | 1373 | | |
1369 | 1374 | | |
1370 | 1375 | | |
| |||
1666 | 1671 | | |
1667 | 1672 | | |
1668 | 1673 | | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1669 | 1679 | | |
1670 | 1680 | | |
1671 | 1681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | 898 | | |
| |||
0 commit comments