lnd.xprv/autopilot
Olaoluwa Osuntokun 1217992d9d
autopilot: optimize heavy loaded agent by fetching raw bytes for ChannelEdge
In this commit, we implement an optimization to the autopilot agent to
ensure that we don't spin and waste CPU when we either have a large
graph, or a high max channel target for the agent. Before this commit,
each time we went to read the state of a channel from disk, we would
decompress the EC Point each time. However, for the case of the instal
ChannlEdge struct to feed to the agent, we only actually need to obtain
the pubkey, and can save the potentially expensive point decompression
for each directional channel in the graph.
2018-09-04 16:43:07 -07:00
..
agent_test.go autopilot: use updateBalance rather than tracking balance explicitly 2018-08-29 02:06:02 -07:00
agent.go autopilot: use updateBalance rather than tracking balance explicitly 2018-08-29 02:06:02 -07:00
graph.go autopilot: optimize heavy loaded agent by fetching raw bytes for ChannelEdge 2018-09-04 16:43:07 -07:00
interface.go autopilot: update the Node interface to return a raw bytes, not the key 2018-08-29 15:44:47 -07:00
log.go autopilot: "Look ma no hands!", introducing autopilot mode 2017-08-10 21:14:55 -07:00
prefattach_test.go autopilot: update the Node interface to return a raw bytes, not the key 2018-08-29 15:44:47 -07:00
prefattach.go autopilot: update the Node interface to return a raw bytes, not the key 2018-08-29 15:44:47 -07:00