Stephen J Day bba5a0d05c
registry/storage: more efficient path compare in catalog
Previous component-wise path comparison is recursive and generates a
large amount of garbage. This more efficient version simply replaces the
path comparison with the zero-value to sort before everything. We do
this by replacing the byte-wise comparison that swaps a single character
inline for the separator comparison, such that separators sort first.

The resulting implementation provides component-wise path comparison
with no cost incurred for allocation or stack frame.

Direction of the comparison is also reversed to match Go style.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-08-08 15:55:26 -07:00
..
2015-05-15 17:56:28 -07:00
2016-06-02 23:03:27 +08:00
2016-06-22 12:40:21 +08:00
2015-08-17 18:51:05 -07:00
2015-08-17 18:51:05 -07:00
2016-07-21 17:16:47 -07:00
2016-07-21 17:16:47 -07:00
2015-05-15 17:05:18 -07:00