In barq-plugin, we currently load the entire network graph (including the gossip map) each time the pay command is called. This approach is redundant and can be inefficient, especially since the gossip map can be quite large (potentially in GBs).
To improve efficiency, we should:
- Store the network graph along with hints from the gossip map in the plugin state.
- Maybe implement a cron job or similar mechanism to update the network graph periodically.
In
barq-plugin, we currently load the entire network graph (including the gossip map) each time thepaycommand is called. This approach is redundant and can be inefficient, especially since the gossip map can be quite large (potentially in GBs).To improve efficiency, we should: