Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for slowAbs (0.27 sec)

  1. src/image/png/paeth_test.go

    	"math/rand"
    	"testing"
    )
    
    func slowAbs(x int) int {
    	if x < 0 {
    		return -x
    	}
    	return x
    }
    
    // slowPaeth is a slow but simple implementation of the Paeth function.
    // It is a straight port of the sample code in the PNG spec, section 9.4.
    func slowPaeth(a, b, c uint8) uint8 {
    	p := int(a) + int(b) - int(c)
    	pa := slowAbs(p - int(a))
    	pb := slowAbs(p - int(b))
    	pc := slowAbs(p - int(c))
    	if pa <= pb && pa <= pc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/MonotonicClock.java

     * <p>
     * When the system wall clock jumps back in time, this clock will effectively slow down until it is back in sync.
     * All syncing timestamps will be the same as the previously issued timestamp.
     * The rate by which this clock slows, and therefore the time it takes to resync,
     * is determined by how frequently the clock is read.
     * If timestamps are only requested at a rate greater than the sync interval,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. src/internal/trace/reader_test.go

    	"testing"
    
    	"internal/trace"
    	"internal/trace/raw"
    	"internal/trace/testtrace"
    	"internal/trace/version"
    )
    
    var (
    	logEvents  = flag.Bool("log-events", false, "whether to log high-level events; significantly slows down tests")
    	dumpTraces = flag.Bool("dump-traces", false, "dump traces even on success")
    )
    
    func TestReaderGolden(t *testing.T) {
    	matches, err := filepath.Glob("./testdata/tests/*.test")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/optimizing-performance/inspect.adoc

    Use the Profiler to produce build scans. Or combine it with method profilers like JProfiler and YourKit.
    These profilers can help you find inefficient algorithms in custom plugins.
    If you find that something in Gradle itself slows down your build, don't hesitate to send a profiler snapshot to ******@****.***.
    
    == Performance categories
    
    Both build scans and local profile reports break down build execution into the same categories.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 09:28:20 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/optimizing-performance/performance.adoc

    ====
    
    WARNING: Forking a VM is an expensive operation. Setting too small a value here slows down testing.
    
    ==== Disable reports
    
    Gradle automatically creates test reports regardless of whether you want to look at them.
    That report generation slows down the overall build. You may not need reports if:
    
    * you only care if the tests succeeded (rather than why)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 23 03:39:56 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    	fcclient "k8s.io/client-go/kubernetes/typed/flowcontrol/v1"
    	"k8s.io/klog/v2"
    	"k8s.io/utils/clock"
    	"k8s.io/utils/ptr"
    )
    
    // Some tests print a lot of debug logs which slows down tests considerably,
    // causing them to even timeout.
    var testDebugLogs = false
    
    func TestMain(m *testing.M) {
    	klog.InitFlags(nil)
    	os.Exit(m.Run())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/value.go

    	v.argstorage[1] = nil
    	v.argstorage[2] = nil
    	v.Args = v.argstorage[:0]
    }
    
    // reset is called from most rewrite rules.
    // Allowing it to be inlined increases the size
    // of cmd/compile by almost 10%, and slows it down.
    //
    //go:noinline
    func (v *Value) reset(op Op) {
    	if v.InCache {
    		v.Block.Func.unCache(v)
    	}
    	v.Op = op
    	v.resetArgs()
    	v.AuxInt = 0
    	v.Aux = nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

         * determined experimentally to match our desired probability of false positives.
         */
        // NB: yes, this is surprisingly high, but that's what the experiments said was necessary
        // Raising this number slows the worst-case contains behavior, speeds up hashFloodingDetected,
        // and reduces the false-positive probability.
        static final int MAX_RUN_MULTIPLIER = 13;
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  9. src/strings/strings.go

    	for end, rune := range s {
    		if f(rune) {
    			if start >= 0 {
    				spans = append(spans, span{start, end})
    				// Set start to a negative value.
    				// Note: using -1 here consistently and reproducibly
    				// slows down this code by a several percent on amd64.
    				start = ^start
    			}
    		} else {
    			if start < 0 {
    				start = end
    			}
    		}
    	}
    
    	// Last field might end at EOF.
    	if start >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/encoding/json/encode.go

    			start = i
    			continue
    		}
    		// TODO(https://go.dev/issue/56948): Use generic utf8 functionality.
    		// For now, cast only a small portion of byte slices to a string
    		// so that it can be stack allocated. This slows down []byte slightly
    		// due to the extra copy, but keeps string performance roughly the same.
    		n := len(src) - i
    		if n > utf8.UTFMax {
    			n = utf8.UTFMax
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top