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/httputils
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
..
decoder.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
errors.go Suggest login on pull denial 2017-06-09 12:43:21 -07:00
form.go fix some types on errors and form 2017-02-07 20:29:32 +08:00
form_test.go use t.Fatal() to output the err message where the values used for formatting 2017-02-23 10:16:22 +08:00
httputils.go Move some api package functions away 2017-06-23 19:37:26 +02:00
httputils_test.go Move some api package functions away 2017-06-23 19:37:26 +02:00
httputils_write_json.go Remove Go 1.6 code from moby 2017-06-19 15:59:00 +03:00
write_log_stream.go Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00