• Clayton Coleman's avatar
    SetSelfLink is inefficient · 4f363f54
    Clayton Coleman authored
    Generating self links, especially for lists, is inefficient.  Replace
    use of net.URL.String() 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.
    4f363f54
Name
Last commit
Last update
..
metatypes Loading commit data...
BUILD Loading commit data...
doc.go Loading commit data...
errors.go Loading commit data...
firsthit_restmapper.go Loading commit data...
help.go Loading commit data...
help_test.go Loading commit data...
interfaces.go Loading commit data...
meta.go Loading commit data...
meta_test.go Loading commit data...
multirestmapper.go Loading commit data...
multirestmapper_test.go Loading commit data...
priority.go Loading commit data...
priority_test.go Loading commit data...
restmapper.go Loading commit data...
restmapper_test.go Loading commit data...
scheme_test.go Loading commit data...
unstructured.go Loading commit data...