Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 128 for avoiding (0.35 sec)

  1. src/sort/sort_slices_benchmark_test.go

    package sort_test
    
    import (
    	"math/rand/v2"
    	"slices"
    	. "sort"
    	"strconv"
    	stringspkg "strings"
    	"testing"
    )
    
    // Benchmarks comparing sorting from the slices package with functions from
    // the sort package (avoiding functions that are just forwarding to the slices
    // package).
    
    func makeRandomInts(n int) []int {
    	r := rand.New(rand.NewPCG(42, 0))
    	ints := make([]int, n)
    	for i := 0; i < n; i++ {
    		ints[i] = r.IntN(n)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. internal/handlers/forwarder.go

    	u := req.URL
    	if req.RequestURI != "" {
    		parsedURL, err := url.ParseRequestURI(req.RequestURI)
    		if err == nil {
    			u = parsedURL
    		}
    	}
    	return u
    }
    
    // copyURL provides update safe copy by avoiding shallow copying User field
    func copyURL(i *url.URL) *url.URL {
    	out := *i
    	if i.User != nil {
    		u := *i.User
    		out.User = &u
    	}
    	return &out
    }
    
    // Modify the request to handle the target URL
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/iexport.go

    // binary export data format. Its chief contribution is introducing an
    // index table, which allows efficient random access of individual
    // declarations and inline function bodies. In turn, this allows
    // avoiding unnecessary work for compilation units that import large
    // packages.
    //
    //
    // The top-level data format is structured as:
    //
    //     Header struct {
    //         Tag        byte   // 'i'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/NormalizingCopyActionDecorator.java

            List<FileCopyDetailsInternal> detailsForPath = pendingDirs.removeAll(path);
    
            FileCopyDetailsInternal dir;
            if (detailsForPath.isEmpty()) {
                // TODO - this is pretty nasty, look at avoiding using a time bomb stub here
                dir = new StubbedFileCopyDetails(path, includeEmptyDirs, chmod);
            } else {
                dir = detailsForPath.get(0);
            }
            delegateAction.processFile(dir);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. docs/en/docs/history-design-future.md

    <blockquote markdown="1">
    
    **FastAPI** wouldn't exist if not for the previous work of others.
    
    There have been many tools created before that have helped inspire its creation.
    
    I have been avoiding the creation of a new framework for several years. First I tried to solve all the features covered by **FastAPI** using many different frameworks, plug-ins, and tools.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_signal_ios_arm64.c

    	thread_state.ts_32.__pc = x_cgo_panicmem;
    #endif
    
    	if (0) {
    		// Useful debugging logic when panicmem is broken.
    		//
    		// Sends the first SIGSEGV and lets lldb catch the
    		// second one, avoiding a loop that locks up iOS
    		// devices requiring a hard reboot.
    		fprintf(stderr, "runtime/cgo: caught exc_bad_access\n");
    		fprintf(stderr, "__lr = %llx\n", thread_state.ts_64.__lr);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:04:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. src/runtime/map_benchmark_test.go

    					m[0] = size // Add one element so len(m) != 0 avoiding fast paths.
    					clear(m)
    				}
    			})
    		}
    	})
    	b.Run("NonReflexive", func(b *testing.B) {
    		for size := 1; size < 100000; size *= 10 {
    			b.Run(strconv.Itoa(size), func(b *testing.B) {
    				m := make(map[float64]int, size)
    				for i := 0; i < b.N; i++ {
    					m[1.0] = size // Add one element so len(m) != 0 avoiding fast paths.
    					clear(m)
    				}
    			})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. fastapi/utils.py

    ) -> ModelField:
        if PYDANTIC_V2:
            return field
        # cloned_types caches already cloned types to support recursive models and improve
        # performance by avoiding unnecessary cloning
        if cloned_types is None:
            cloned_types = _CLONED_TYPES_CACHE
    
        original_type = field.type_
        if is_dataclass(original_type) and hasattr(original_type, "__pydantic_model__"):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularizationCache.java

    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.PathType;
    
    /**
     * Cache of {@link PathModularization} instances computed for given {@link Path} elements.
     * The cache is used for avoiding the need to reopen the same files many times when the
     * same dependency is used for different scope. For example a path used for compilation
     * is typically also used for tests.
     */
    class PathModularizationCache {
        /**
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. src/log/slog/doc.go

    or gather a struct's fields in a Group. See the examples under [LogValuer] for
    details.
    
    A LogValue method may return a Value that itself implements [LogValuer]. The [Value.Resolve]
    method handles these cases carefully, avoiding infinite loops and unbounded recursion.
    Handler authors and others may wish to use [Value.Resolve] instead of calling LogValue directly.
    
    # Wrapping output methods
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 14:35:48 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top