- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for performance (0.15 sec)
-
src/bytes/bytes.go
if r != utf8.RuneError { // r is 2 to 4 bytes if len(chars) == width { if chars == string(r) { return i } continue } // Use bytealg.IndexString for performance if available. if bytealg.MaxLen >= width { if bytealg.IndexString(chars, string(r)) >= 0 { return i } continue } } for _, ch := range chars { if r == ch {
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/archive/tar/stat_unix.go
package tar import ( "io/fs" "os/user" "runtime" "strconv" "sync" "syscall" ) func init() { sysStat = statUnix } // userMap and groupMap caches UID and GID lookups for performance reasons. // The downside is that renaming uname or gname by the OS never takes effect. var userMap, groupMap sync.Map // map[int]string func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 3.2K bytes - Viewed (0) -
src/archive/zip/zip_test.go
85, 120, 0, 0, // tag 30805 size 0 }, } testValidHeader(&h, t) } // Just benchmarking how fast the Zip64 test above is. Not related to // our zip performance, since the test above disabled CRC32 and flate. func BenchmarkZip64Test(b *testing.B) { for i := 0; i < b.N; i++ { testZip64(b, 1<<26) } } func BenchmarkZip64TestSizes(b *testing.B) {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 19.5K bytes - Viewed (0) -
src/archive/tar/tar_test.go
b.Run(v.label, func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { // Writing to io.Discard because we want to // test purely the writer code and not bring in disk performance into this. tw := NewWriter(io.Discard) for _, file := range v.files { if err := tw.WriteHeader(file.hdr); err != nil { b.Errorf("unexpected WriteHeader error: %v", err) }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24K bytes - Viewed (0) -
doc/go_mem.html
</p> <p> Reads of memory locations larger than a single machine word are encouraged but not required to meet the same semantics as word-sized memory locations, observing a single allowed write <i>w</i>. For performance reasons, implementations may instead treat larger operations as a set of individual machine-word-sized operations in an unspecified order. This means that races on multiword data structures
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0)