- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 269 for hamster (0.12 sec)
-
src/runtime/map_fast32.go
racewritepc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapassign_fast32)) } if h.flags&hashWriting != 0 { fatal("concurrent map writes") } hash := t.Hasher(noescape(unsafe.Pointer(&key)), uintptr(h.hash0)) // Set hashWriting after calling t.hasher for consistency with mapassign. h.flags ^= hashWriting if h.buckets == nil { h.buckets = newobject(t.Bucket) // newarray(t.bucket, 1) } again:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
// Map.Lookup require updates to the hasher, so a full Mutex lock (not a // read-lock) is require around all Map operations if a shared // hasher is accessed from multiple threads. // // If SetHasher is not called, the Map will create a private hasher at // the first call to Insert. func (m *Map) SetHasher(hasher Hasher) { m.hasher = hasher } // Delete removes the entry with the given key, if any.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/ledger/util.go
var defaultLeaf = hasher([]byte{0x0}) const ( hashLength = 8 ) type hash [hashLength]byte func bitIsSet(bits []byte, i int) bool { return bits[i/8]&(1<<uint(7-i%8)) != 0 } func hasher(data ...[]byte) []byte { hasher := murmur3.New64() for i := 0; i < len(data); i++ { _, _ = hasher.Write(data[i]) } result := hasher.Sum(nil) return result } // for sorting
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.3K bytes - Viewed (0) -
src/text/template/multi_test.go
} } // Issue 7032 func TestAddParseTreeToUnparsedTemplate(t *testing.T) { master := "{{define \"master\"}}{{end}}" tmpl := New("master") tree, err := parse.Parse("master", master, "", "", nil) if err != nil { t.Fatalf("unexpected parse err: %v", err) } masterTree := tree["master"] tmpl.AddParseTree("master", masterTree) // used to panic } func TestRedefinition(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 10:48:29 UTC 2022 - 11.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/main.go
// This is very much a hack, but it is better than nothing. // // Do a single regexp pass to record all ops being handled in a map, and // then compare that with the ops list. This is much faster than one // regexp pass per opcode. for _, a := range archs { if a.genfile == "" { continue } pattern := fmt.Sprintf(`\Wssa\.Op%s([a-zA-Z0-9_]+)\W`, a.name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 22:42:34 UTC 2023 - 16.9K bytes - Viewed (0) -
pkg/controlplane/reconcilers/instancecount.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // Package reconcilers master count based reconciler package reconcilers import ( "net" "sync" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 7.2K bytes - Viewed (0) -
src/cmd/compile/internal/wasm/ssa.go
linear memory where the Go runtime is maintaining the stack for that goroutine. Functions cache the global stack pointer in a local variable for faster access, but any changes must be spilled to the global variable before any call and restored from the global variable after any call. Calling convention:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:21:13 UTC 2023 - 17.6K bytes - Viewed (0) -
src/compress/flate/deflate.go
d.w.writeBlock(tokens, false, window) return d.w.err } return nil } // fillWindow will fill the current window with the supplied // dictionary and calculate all hashes. // This is much faster than doing a full encode. // Should only be used after a reset. func (d *compressor) fillWindow(b []byte) { // Do not fill window if we are in store-only mode. if d.compressionLevel.level < 2 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 20.3K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux.go
if err != nil { return base, nil, err } dirs := strings.Split(rel, string(filepath.Separator)) // Do OpenAt in a loop to find the first non-existing dir. Resolve symlinks. // This should be faster than looping through all dirs and calling os.Stat() // on each of them, as the symlinks are resolved only once with OpenAt(). currentPath := base fd, err := syscall.Open(currentPath, syscall.O_RDONLY|syscall.O_CLOEXEC, 0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 14:09:11 UTC 2022 - 21.4K bytes - Viewed (0) -
pkg/controlplane/controller/kubernetesservice/controller_test.go
}, } for _, test := range createTests { t.Run(test.testName, func(t *testing.T) { master := Controller{} fakeClient := fake.NewSimpleClientset() serviceStore := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{}) master.serviceLister = v1listers.NewServiceLister(serviceStore) master.client = fakeClient
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 13 10:41:06 UTC 2023 - 15.3K bytes - Viewed (0)