Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for forcealloc (0.09 sec)

  1. src/index/suffixarray/sais2.go

    	// so this one allocation is guaranteed to suffice for the entire stack
    	// of recursive calls.
    	tmp := oldTmp
    	if len(tmp) < len(saTmp) {
    		tmp = saTmp
    	}
    	if len(tmp) < numLMS {
    		// TestSAIS/forcealloc reaches this code.
    		n := maxID
    		if n < numLMS/2 {
    			n = numLMS / 2
    		}
    		tmp = make([]int64, n)
    	}
    
    	// sais_64 requires that the caller arrange to clear dst,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
Back to top