Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/google/codesearch
/ push
Method
push
index/write.go:413–419 ·
view source on GitHub ↗
(ch *postChunk)
Source
from the content-addressed store, hash-verified
411
}
412
413
func
(h *postHeap) push(ch *postChunk) {
414
n := len(h.ch)
415
h.ch = append(h.ch, ch)
416
if
len(h.ch) >= 2 {
417
h.siftUp(n)
418
}
419
}
420
421
func
(h *postHeap) siftDown(i int) {
422
ch := h.ch
Callers
1
add
Method · 0.95
Calls
1
siftUp
Method · 0.95
Tested by
no test coverage detected