Skip to content

History / SliceTricks

Revisions

  • wiki: redirect everything to go.dev/wiki For #61940.

    @rsc rsc committed Dec 15, 2023
  • Adds clarity on how deleting elements from a slice can cause a memory leak thanks to the underlying array

    @timrosenblatt timrosenblatt committed Aug 10, 2023
  • added reference to golang.org/x/exp/slices

    @servusdei2018 servusdei2018 committed Jan 10, 2023
  • Add "Extend Capacity"

    @duncanharris duncanharris committed Mar 30, 2022
  • Clarify Expand and Extend

    @jeremychase jeremychase committed Mar 4, 2022
  • fix godoc.org / pkg.go.dev links

    @seankhliao seankhliao committed Jan 22, 2022
  • Revert f6920aaaf866d0e331b12fad4ee530079113b97f...75c3834c6757470db4b2507a742a18df4206efb6 on SliceTricks

    @ianlancetaylor ianlancetaylor committed Sep 13, 2021
  • It maybe a typo

    @litbear litbear committed Sep 13, 2021
  • I think there should be a colon ' : '

    @andrew-field andrew-field committed May 26, 2021
  • Updated SliceTricks (markdown)

    @go101 go101 committed May 24, 2021
  • Updated SliceTricks (markdown)

    @go101 go101 committed May 24, 2021
  • Updated SliceTricks (markdown)

    @go101 go101 committed May 24, 2021
  • tipo

    @ianlancetaylor ianlancetaylor committed May 10, 2021
  • Updated SliceTricks (markdown)

    @go101 go101 committed May 9, 2021
  • Updated SliceTricks (markdown)

    @go101 go101 committed May 9, 2021
  • Fix moveToFront and its headline

    @yarcat yarcat committed Feb 12, 2021
  • Updated SliceTricks (markdown)

    @go101 go101 committed Dec 30, 2020
  • Updated SliceTricks (markdown)

    @go101 go101 committed Dec 30, 2020
  • remove stray code in Insert section

    @nishanths nishanths committed Nov 20, 2020
  • Updated SliceTricks (markdown)

    @go101 go101 committed Sep 7, 2020
  • remove append based slice copy patterns that are slower since go1.15 than make+copy

    @martisch martisch committed Sep 6, 2020
  • Revert e5998399c87e9f2de47e5108df584283db3c7fbd...46fe561befe97672f770640f831a9a545c77e540 on SliceTricks

    @ianlancetaylor ianlancetaylor committed Jun 8, 2020
  • batch slice cap should be actions divided by batchSize and plus one for remainder (added braces for clarity)

    @weizhang9 weizhang9 committed Jun 8, 2020
  • Add a sliding window function as shared here: https://gophers.slack.com/archives/C02A8LZKT/p1588980407253800

    @theckman theckman committed May 8, 2020
  • Updated SliceTricks (markdown)

    @twpayne twpayne committed May 4, 2020
  • Updated SliceTricks (markdown)

    @twpayne twpayne committed May 4, 2020
  • Ordered delete's check for `i<len(a)-1` is unnecessary. Slicing an n-length array using `[n:]` will return an empty array, and so the copy will do nothing.

    @kent-h kent-h committed Apr 15, 2020
  • once memory allocation for batches

    @marusama marusama committed Jan 15, 2020
  • Revert d28c2eed0adc1a35d49bd3446ec51646c3fd547a...7c1079779440dc52877765bc0a548c24a8ea0cbc on SliceTricks

    @ianlancetaylor ianlancetaylor committed Nov 12, 2019
  • fix: correct boundary checking for deleting an element

    @navid-kalaei navid-kalaei committed Nov 12, 2019