Open twoeths opened 1 month ago
This ssz api takes 2.5% time of a holesky node subscribing to all subnets
holesky_subscribe_all_subnets_main.cpuprofile.zip
I see some Uint8Array.slice() api there, see if we can improve by using Uint8Array.subarray() to avoid memory allocation
Uint8Array.slice()
Uint8Array.subarray()
part of #7186
No response
Linux
unstable and v1.22.0
getAggregationBitsFromAttestationSerialized() really caused gc due to its memory allocation
getAggregationBitsFromAttestationSerialized()
gc
Describe the bug
This ssz api takes 2.5% time of a holesky node subscribing to all subnets
holesky_subscribe_all_subnets_main.cpuprofile.zip
Expected behavior
I see some
Uint8Array.slice()
api there, see if we can improve by usingUint8Array.subarray()
to avoid memory allocationpart of #7186
Steps to reproduce
No response
Additional context
No response
Operating system
Linux
Lodestar version or commit hash
unstable and v1.22.0