core-lightning/plugins
Rusty Russell 40f17d994c libplugin: don't parse partial JSON repeatedly.
Tested on a test node which had made 50,000 payment, with no optimization.

For comparison, time for 'listsendpays' was 0.983s.

time lightning-cli -R --network=regtest --lightning-dir /tmp/ltests-k8jhvtty/test_pay_stress_1/lightning-1/ listpays > /dev/null

Before:
	real	0m52.415s
	user	0m0.127s
	sys	0m0.044s

After:
	real	0m42.741s
	user	0m0.149s
	sys	0m0.016s

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: libplugin: significant speedups for reading large JSON replies (e.g. calling listsendpays on large nodes, or listchannels / listnodes).
2020-08-21 09:52:33 +09:30
..
.gitignore gitignore: extend with recently added build products 2020-02-21 09:44:41 +01:00
autoclean.c plugin: Do not automatically initialize the RPC connection in bcli 2020-07-23 10:14:21 +09:30
bcli.c bcli: explicitly check at startup that bitcoind does relay transactions 2020-08-03 12:46:37 +09:30
fundchannel.c fundchannel: provide outnum 2020-08-13 12:37:02 -05:00
keysend.c plugin: Do not automatically initialize the RPC connection in bcli 2020-07-23 10:14:21 +09:30
libplugin-pay.c plugins/libplugin-pay.c: Make sure blockheight disagreement does not prevent all future progress. 2020-08-13 12:50:16 +02:00
libplugin-pay.h plugins/libplugin-pay.c: Properly handle exclusions for routehints with two hops or more. 2020-08-03 15:20:29 +09:30
libplugin.c libplugin: don't parse partial JSON repeatedly. 2020-08-21 09:52:33 +09:30
libplugin.h libplugin: allow commands and options to mark themselves deprecated. 2020-08-11 08:43:18 +09:30
Makefile plugins/Makefile: Only link in libplugin-pay for plugins that need it. 2020-08-07 10:40:10 +09:30
pay.c pay: Group payments by their payment_hash, not by bolt11 string 2020-08-12 19:10:48 +02:00
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00

Plugin Directory

Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).