- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for expensive (0.17 sec)
-
src/bytes/bytes.go
// the cutover is about 16 byte skips. // TODO: if large prefixes of sep are matching // we should cutover at even larger average skips, // because Equal becomes that much more expensive. // This code does not take that effect into account. j := bytealg.IndexRabinKarp(s[i:], sep) if j < 0 { return -1 } return i + j } } return -1 }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0) -
src/bufio/bufio_test.go
} } } // TestWriterReadFromCounts tests that using io.Copy to copy into a // bufio.Writer does not prematurely flush the buffer. For example, when // buffering writes to a network socket, excessive network writes should be // avoided. func TestWriterReadFromCounts(t *testing.T) { var w0 writeCountingDiscard b0 := NewWriterSize(&w0, 1234) b0.WriteString(strings.Repeat("x", 1000)) if w0 != 0 {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 10 18:56:01 GMT 2023 - 51.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue1435.go
} return nil } // test1435 test 9 glibc implemented setuid/gid syscall functions are // mapped. This test is a slightly more expansive test than that of // src/syscall/syscall_linux_test.go:TestSetuidEtc() insofar as it // launches concurrent threads from C code via CGo and validates that // they are subject to the system calls being tested. For the actual
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Jul 28 21:31:41 GMT 2023 - 7.5K bytes - Viewed (0) -
doc/go1.22.html
for validating and comparing Go version strings. </p> <h3 id="enhanced_routing_patterns">Enhanced routing patterns</h3> <p><!-- https://go.dev/issue/61410 --> HTTP routing in the standard library is now more expressive. The patterns used by <a href="/pkg/net/http#ServeMux"><code>net/http.ServeMux</code></a> have been enhanced to accept methods and wildcards. </p> <p>
HTML - Registered: Tue Feb 06 11:13:10 GMT 2024 - Last Modified: Wed Jan 31 20:51:56 GMT 2024 - 45.6K bytes - Viewed (0)