moby--moby/daemon/logger/jsonfilelog
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
..
multireader fd leak and error handling 2017-06-23 15:38:35 +08:00
jsonfilelog.go Fix log readers can block writes indefinitely 2017-07-05 14:04:52 -04:00
jsonfilelog_test.go Use a regex to match environment variables #27565 2017-01-19 15:30:11 -08:00
read.go Avoid using a map for log attributes 2017-07-18 19:01:20 -07:00