distribution/registry
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
..
api Document TOOMANYREQUESTS error code 2016-07-12 12:18:54 -06:00
auth Merge pull request #1686 from marcusmartins/nbf-leeway 2016-07-19 17:41:57 -07:00
client Merge pull request #1757 from miminar/cross-mount-middleware-repository 2016-07-19 17:43:10 -07:00
handlers Merge pull request #1829 from nwt/foreign-layer-host-whitelist 2016-07-21 16:02:20 -07:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Add support for blobAccessController middleware 2016-05-19 14:02:15 +02:00
proxy when deploy registry as a pull through cache ,function copeContent() may cause a socket leak when docker user canceled its pull operation. 2016-08-02 11:10:10 +08:00
storage registry/storage: more efficient path compare in catalog 2016-08-08 15:55:26 -07:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Add support for Let's Encrypt 2016-06-13 11:30:42 -07:00
root.go Remove signature store from registry. Return a generated signature for manifest 2016-05-27 13:19:26 -07:00