{"push_id":2020420336,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"4a0b77cc267aea25d294bc298cc275e596a3b724","before":"9fae4359677e47afbf5c6f9ac500bb63a33cbb22","commits":[{"sha":"72bf85d5bc4e0a3997736a1db879a76974ac9471","author":{"name":"Kubernetes Publisher","email":"2fa80b60cb95068cf89cda099561dcc71cf4c685@users.noreply.github.com"},"message":"Ring buffer for notifications\n\nResults from BenchmarkListener:\nCurrent code:\n1000000\t      1540 ns/op\t     109 B/op\t       1 allocs/op\n\nNew:\n1000000\t      1139 ns/op\t      16 B/op\t       1 allocs/op\n\nKubernetes-commit: 1940f5a5d2acce377ab16b5561f3d9002fb2a319","distinct":true,"url":"https://api.github.com/repos/sttts/kube-aggregator/commits/72bf85d5bc4e0a3997736a1db879a76974ac9471"},{"sha":"4a0b77cc267aea25d294bc298cc275e596a3b724","author":{"name":"Kubernetes Publisher","email":"2fa80b60cb95068cf89cda099561dcc71cf4c685@users.noreply.github.com"},"message":"Merge pull request #49705 from atlassian/rbuf\n\nAutomatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href=\"https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md\">here</a>.\n\nRing buffer for shared informer notifications\n\n**What this PR does / why we need it**:\nImproves memory allocation for shared informer listeners. Instead of always appending to the slice use as a ring buffer, avoiding reslice operations as long as there is room in the slice. See https://github.com/kubernetes/kubernetes/pull/47045#issuecomment-317621259 for details. This is a follow up PR for #47045.\n\nResults from BenchmarkListener:\n```\nCurrent code (from the #47045):\n1000000\t      1540 ns/op\t     109 B/op\t       1 allocs/op\n```\n```\nNew code:\n1000000\t      1162 ns/op\t      16 B/op\t       1 allocs/op\n```\n\n**Special notes for your reviewer**:\nOnly review the last commit, this branch is based on #47045 PR. I'll rebase onto master once it is merged.\n\n**Release note**:\n\n```release-note\nNONE\n```\n/kind enhancement\n/sig api-machinery\n/cc @deads2k @ncdc\n\nKubernetes-commit: bb035a2854e690d726ece2f8c5e1b8f4b7aef930","distinct":true,"url":"https://api.github.com/repos/sttts/kube-aggregator/commits/4a0b77cc267aea25d294bc298cc275e596a3b724"}]}
{"actor":{"display_login":"sttts"}}