moby/libnetwork/ipam
Cory Snider 5287b2ddbf libnet/ipam: stop eagerly stringifying debug logs
The (*bitmap.Handle).String() method can be rather expensive to call. It
is all the more tragic when the expensively-constructed string is
immediately discarded because the log level is not high enough. Let
logrus stringify the arguments to debug logs so they are only
stringified when the log level is high enough.

    # Before
    ok  	github.com/docker/docker/libnetwork/ipam	10.159s
    # After
    ok  	github.com/docker/docker/libnetwork/ipam	2.484s

Signed-off-by: Cory Snider <csnider@mirantis.com>
2023-02-08 16:54:27 -05:00
..
allocator.go libnet/ipam: stop eagerly stringifying debug logs 2023-02-08 16:54:27 -05:00
allocator_test.go libnetwork: drop DatastoreConfig discovery type 2023-01-27 11:47:43 -05:00
parallel_test.go libnetwork: drop DatastoreConfig discovery type 2023-01-27 11:47:43 -05:00
structures.go libnetwork/ipam: skip Destroy()ing bitseq.Handle values 2023-01-27 11:47:43 -05:00
utils.go Fix libnetwork imports 2021-06-01 21:51:23 +00:00