• 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
api_installer_test.go 1.43 KB