1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server
Aaron Lehmann b642b3f21f Avoid using a map for log attributes
Having a map per log entry seemed heavier than necessary. These
attributes end up being sorted and serialized, so storing them in a map
doesn't add anything (there's no random access element). In SwarmKit,
they originate as a slice, so there's an unnecessary conversion to a map
and back.

This also fixes the sort comparator, which used to inefficiently split
the string on each comparison.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2017-07-18 19:01:20 -07:00
..
backend/build return prune data when context canceled 2017-07-10 10:06:24 +08:00
httputils Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00
middleware middleware: Redact secret data on "secret create" 2017-06-29 16:04:47 -07:00
router Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
middleware.go change comment 2016-08-26 18:30:41 +08:00
profiler.go Use generic handler for pprof profile lookups 2017-03-16 11:05:20 -04:00
router_swapper.go fix typos 2016-03-06 00:59:11 +08:00
server.go server.go: format for 2017-05-15 07:12:28 +08:00
server_test.go Correct fmt.Fprintf and t.Fatalf 2017-02-08 12:32:40 +08:00