Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getHints (0.28 sec)

  1. cmd/os_unix.go

    	}
    
    	return nil
    }
    
    // The buffer must be at least a block long.
    // refer https://github.com/golang/go/issues/24015
    const blockSize = 8 << 10 // 8192
    
    // By default at least 128 entries in single getdents call (1MiB buffer)
    var (
    	direntPool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, blockSize*128)
    			return &buf
    		},
    	}
    
    	direntNamePool = sync.Pool{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top