distribution/registry
Stephen J Day 2aa09ff9a8 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-26 11:08:59 -07:00
..
api Merge pull request #1774 from RichardScothern/catalog-clarifcation 2016-06-08 12:59:09 -07:00
auth Merge pull request #1465 from dmcgowan/token-server-oauth 2016-06-13 15:01:06 -07:00
client Merge pull request #1775 from dmcgowan/get-content-digest 2016-06-13 14:59:05 -07:00
handlers If resumable digest support is disabled, detct this when closing the blobwriter 2016-06-13 17:35:06 -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 Remove signature store from registry. Return a generated signature for manifest 2016-05-27 13:19:26 -07:00
storage registry/storage: more efficient path compare in catalog 2016-08-26 11:08:59 -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