erigon-pulse/p2p/discover
Victor Shyba 158fb2b606
Optimize memory buffer, simplify set32, use sha256-simd (#7060)
Hi,

I'm syncing Gnosis on a Celeron N5100 to get familiar with the codebase.
In the process I managed to optimize some things from profiling.
Since I'm not yet on the project Discord, I decided to open this PR as a
suggestion. This pass all tests here and gave me a nice boost for that
platform, although I didn't have time to benchmark it yet.

* reuse VM Memory objects with sync.Pool. It starts with 4k as `evmone`
[code
suggested](0897edb001/lib/evmone/execution_state.hpp (L49))
as a good value.
* set32 simplification: mostly cosmetic
* sha256-simd: Celeron has SHA instructions. We should probably do the
same for torrent later, but this already helped as it is very CPU bound
on such a low end processor. Maybe that helps ARM as well.
2023-03-14 07:17:04 +00:00
..
v4wire p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#3963) 2022-04-26 15:37:00 +01:00
v5wire Optimize memory buffer, simplify set32, use sha256-simd (#7060) 2023-03-14 07:17:04 +00:00
common.go p2p (#4119): treat slow discover v5 tests (#4122) 2022-05-12 10:24:51 +07:00
lookup_util_test.go up linter version (#4108) 2022-05-10 10:14:09 +07:00
lookup.go Discovery: speed up lookup tests (#3677) 2022-03-11 12:04:42 +07:00
node.go Discovery: refactor public key to node ID conversions. (#3634) 2022-03-03 21:58:31 +07:00
ntp.go Clean up DEBUG category logs (#2776) 2021-10-05 08:14:04 +07:00
table_integration_test.go Use go:build lines and remove obsolete +build lines (#4175) 2022-05-17 14:46:53 +07:00
table_test.go CL lightclient to create memdb in the tmpdir which gets cleaned up on… (#6829) 2023-02-11 20:44:51 +00:00
table_util_test.go CL lightclient to create memdb in the tmpdir which gets cleaned up on… (#6829) 2023-02-11 20:44:51 +00:00
table.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
v4_lookup_test.go Use go:build lines and remove obsolete +build lines (#4175) 2022-05-17 14:46:53 +07:00
v4_udp_test.go CL lightclient to create memdb in the tmpdir which gets cleaned up on… (#6829) 2023-02-11 20:44:51 +00:00
v4_udp.go p2p (#4119): treat slow discover v5 tests (#4122) 2022-05-12 10:24:51 +07:00
v5_lookup_test.go Use go:build lines and remove obsolete +build lines (#4175) 2022-05-17 14:46:53 +07:00
v5_udp_integration_test.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
v5_udp_test.go CL lightclient to create memdb in the tmpdir which gets cleaned up on… (#6829) 2023-02-11 20:44:51 +00:00
v5_udp.go tweak(p2p): trace log level for error from t.matchWithCall (#6214) 2022-12-06 09:29:41 +07:00