feat: cache router info
Unfortunately, constructing a router is _not_ cheap. Cache it so we don't have to re-compute it every time we get a query.
Showing
... | ... | @@ -4,6 +4,7 @@ go 1.14 |
require ( | ||
github.com/gogo/protobuf v1.3.1 | ||
github.com/google/gopacket v1.1.17 | ||
github.com/google/uuid v1.1.1 | ||
github.com/hashicorp/go-multierror v1.1.0 | ||
github.com/hashicorp/golang-lru v0.5.4 | ||
... | ... | @@ -24,7 +25,6 @@ require ( |
github.com/libp2p/go-libp2p-testing v0.1.1 | ||
github.com/libp2p/go-msgio v0.0.4 | ||
github.com/libp2p/go-netroute v0.1.2 | ||
github.com/mr-tron/base58 v1.1.3 | ||
github.com/multiformats/go-base32 v0.0.3 | ||
github.com/multiformats/go-multiaddr v0.2.1 | ||
github.com/multiformats/go-multiaddr-dns v0.2.0 | ||
... | ... |
Please register or sign in to comment