Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for heapSiftUp (0.4 sec)

  1. src/internal/trace/batchcursor.go

    	// Add the cursor to the end of the heap.
    	heap = append(heap, bc)
    
    	// Sift the new entry up to the right place.
    	heapSiftUp(heap, len(heap)-1)
    	return heap
    }
    
    func heapUpdate(heap []*batchCursor, i int) {
    	// Try to sift up.
    	if heapSiftUp(heap, i) != i {
    		return
    	}
    	// Try to sift down, if sifting up failed.
    	heapSiftDown(heap, i)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top