Browse Source
This was checked with `gcc -S -O2` to see how an optimized build would compile the function. The original code completed calls into each child (and the `.s` file showed that GCC 9.x was not smart enough to do early-out). This modification explicitly does early-out, and avoids call-return stack overhead for the common case where a payment is an ancestor of a long line of single-child payments due to retrying. Changelog-None: pointless micro-optimizationbump-pyln-proto
ZmnSCPxj jxPCSnmZ
5 years ago
committed by
Christian Decker
1 changed files with 17 additions and 4 deletions
Loading…
Reference in new issue