mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
lightningd: add --dev-no-version-checks, use if SLOW_MACHINE and VALGRIND
Reduces VALGRIND=1 node_factory.line_graph(5) time on my laptop from 42s to 36s. This is simply because forking all the subdaemons just to check the version is very expensive under valgrind. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c85a433d9a
commit
1274d34822
@@ -579,6 +579,9 @@ class LightningNode(object):
|
||||
self.daemon.opts["dev-disconnect"] = "dev_disconnect"
|
||||
if DEVELOPER:
|
||||
self.daemon.opts["dev-fail-on-subdaemon-fail"] = None
|
||||
# Don't run --version on every subdaemon if we're valgrinding and slow.
|
||||
if SLOW_MACHINE and VALGRIND:
|
||||
self.daemon.opts["dev-no-version-checks"] = None
|
||||
self.daemon.env["LIGHTNINGD_DEV_MEMLEAK"] = "1"
|
||||
if os.getenv("DEBUG_SUBD"):
|
||||
self.daemon.opts["dev-debugger"] = os.getenv("DEBUG_SUBD")
|
||||
|
||||
Reference in New Issue
Block a user