Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for NewFit (0.06 sec)

  1. src/runtime/map_faststr.go

    	if h.growing() {
    		evacuate_faststr(t, h, h.nevacuate)
    	}
    }
    
    func evacuate_faststr(t *maptype, h *hmap, oldbucket uintptr) {
    	b := (*bmap)(add(h.oldbuckets, oldbucket*uintptr(t.BucketSize)))
    	newbit := h.noldbuckets()
    	if !evacuated(b) {
    		// TODO: reuse overflow buckets instead of using new ones, if there
    		// is no iterator using the old buckets.  (If !oldIterator.)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. src/runtime/map.go

    		advanceEvacuationMark(h, t, newbit)
    	}
    }
    
    func advanceEvacuationMark(h *hmap, t *maptype, newbit uintptr) {
    	h.nevacuate++
    	// Experiments suggest that 1024 is overkill by at least an order of magnitude.
    	// Put it in there as a safeguard anyway, to ensure O(1) behavior.
    	stop := h.nevacuate + 1024
    	if stop > newbit {
    		stop = newbit
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
Back to top