FAQ
A quick follow-up regarding the performance and memory-usage of go's slices
(with append) vs other approaches for storing a queue. I just landed a
patch [1] which shows a 30-40% improvement in memory usage (and
particularly fewer garbage-collection pauses) in my benchmark.

Still just using a single slice, but doing some extra work to use it as a
ring-buffer instead of a straight buffer.

[1] https://github.com/eapache/channels/pull/4

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMar 1, '14 at 12:10a
activeMar 1, '14 at 12:10a
posts1
users1
websitegolang.org

1 user in discussion

Evan Huus: 1 post

People

Translate

site design / logo © 2022 Grokbase