FAQ

On 2012/10/12 15:07:05, rsc wrote:
That's a pretty long line. How about just
// most recent pause times (circular buffer)
How about this?
// circular buffer of recent GC pause times, the most recent one is
[NumGC%256]

I prefer we give explicit note about which entry is the most recent
(e.g. the offset of the circular buffer)

https://codereview.appspot.com/6657047/

Search Discussions

  • Brad Fitzpatrick at Oct 12, 2012 at 4:14 pm

    On Fri, Oct 12, 2012 at 8:14 AM, wrote:
    On 2012/10/12 15:07:05, rsc wrote:

    That's a pretty long line. How about just
    // most recent pause times (circular buffer)
    How about this?
    // circular buffer of recent GC pause times, the most recent one is
    [NumGC%256]
    // circular buffer of recent GC pause times; most recent at [NumGC%256]

    ?
  • Russ Cox at Oct 12, 2012 at 3:29 pm
    // circular buffer of recent GC pause times; most recent at [NumGC%256]
    This is not true. The most recent is at [(NumGC-1+256)%256]

    Russ

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedOct 12, '12 at 3:19p
activeOct 12, '12 at 4:14p
posts3
users3
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase