k3s/pkg/api/meta
Kubernetes Submit Queue ebc8dc85aa Merge pull request #36207 from smarterclayton/optimize_self_link
Automatic merge from submit-queue

SetSelfLink is inefficient

Generating self links, especially for lists, is inefficient.  Replace
use of net.URL.String() call with direct encoding that reduces number of
allocations. Switch from calling meta.ExtractList|SetList to a function
that iterates over each object in the list.

In steady state for nodes performing frequently small get/list
operations, and for larger LISTs significantly reduces CPU and
allocations.

@wojtek-t this is the next big chunk of CPU use during the large N nodes simulation test (11% of master CPU). Takes a few allocations out of the critical path
2016-11-06 06:42:49 -08:00
..
metatypes autogenerated 2016-10-21 17:32:32 -07:00
BUILD autogenerated 2016-10-21 17:32:32 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
errors.go Implement a RESTMappings method 2016-07-13 21:18:53 -04:00
firsthit_restmapper.go add FirstHitRESTMapper for adding thirdparty resources 2016-09-15 10:26:39 -04:00
help.go Merge pull request #36207 from smarterclayton/optimize_self_link 2016-11-06 06:42:49 -08:00
help_test.go Merge pull request #36207 from smarterclayton/optimize_self_link 2016-11-06 06:42:49 -08:00
interfaces.go Allow garbage collection to work against different API prefixes 2016-09-22 15:00:58 -04:00
meta.go Remove reflection path in meta.Accessor 2016-07-06 11:29:47 -04:00
meta_test.go Remove reflection path in meta.Accessor 2016-07-06 11:29:47 -04:00
multirestmapper.go Implement a RESTMappings method 2016-07-13 21:18:53 -04:00
multirestmapper_test.go Implement a RESTMappings method 2016-07-13 21:18:53 -04:00
priority.go Implement a RESTMappings method 2016-07-13 21:18:53 -04:00
priority_test.go Implement a RESTMappings method 2016-07-13 21:18:53 -04:00
restmapper.go use discovery restmapper for kubectl 2016-09-15 10:26:39 -04:00
restmapper_test.go add group prefix matching for kubectl usage 2016-09-07 10:32:39 -04:00
scheme_test.go add validateListType to pkg/api/meta/schema_test.go 2016-08-02 15:47:24 -07:00
unstructured.go Add discovery mapper and dynamic typer to kubectl 2016-08-15 22:07:54 -07:00