Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for large (0.14 sec)

  1. src/bytes/buffer_test.go

    				t.Errorf("bad written data at %d %d", startLen, growLen)
    			}
    		}
    	}
    }
    
    func TestGrowOverflow(t *testing.T) {
    	defer func() {
    		if err := recover(); err != ErrTooLarge {
    			t.Errorf("after too-large Grow, recover() = %v; want %v", err, ErrTooLarge)
    		}
    	}()
    
    	buf := NewBuffer(make([]byte, 1))
    	const maxInt = int(^uint(0) >> 1)
    	buf.Grow(maxInt)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. doc/next/5-toolchain.md

    ## Compiler {#compiler}
    
    The build time overhead to building with [Profile Guided Optimization](/doc/pgo) has been reduced significantly.
    Previously, large builds could see 100%+ build time increase from enabling PGO.
    In Go 1.23, overhead should be in the single digit percentages.
    
    ## Assembler {#assembler}
    
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 18 15:39:17 GMT 2024
    - 332 bytes
    - Viewed (0)
  3. doc/go_spec.html

    </p>
    
    <pre class="grammar">
    append(s S, x ...E) S  // core type of S is []E
    </pre>
    
    <p>
    If the capacity of <code>s</code> is not large enough to fit the additional
    values, <code>append</code> <a href="#Allocation">allocates</a> a new, sufficiently large underlying
    array that fits both the existing slice elements and the additional values.
    Otherwise, <code>append</code> re-uses the underlying array.
    </p>
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top