Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 414 for nicard (0.19 sec)

  1. internal/ioutil/discard.go

    import (
    	"io"
    )
    
    // Discard is just like io.Discard without the io.ReaderFrom compatible
    // implementation which is buggy on NUMA systems, we have to use a simpler
    // io.Writer implementation alone avoids also unnecessary buffer copies,
    // and as such incurred latencies.
    var Discard io.Writer = discard{}
    
    // discard is /dev/null for Golang.
    type discard struct{}
    
    func (discard) Write(p []byte) (int, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Nov 06 22:26:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/internal/language/tables.go

    	"lipaw":    0x63,
    	"ltg1929":  0x34,
    	"ltg2007":  0x35,
    	"luna1918": 0x36,
    	"metelko":  0x37,
    	"monoton":  0x38,
    	"ndyuka":   0x39,
    	"nedis":    0x3a,
    	"newfound": 0x3b,
    	"nicard":   0x3c,
    	"njiva":    0x64,
    	"nulik":    0x3d,
    	"osojs":    0x65,
    	"oxendict": 0x3e,
    	"pahawh2":  0x3f,
    	"pahawh3":  0x40,
    	"pahawh4":  0x41,
    	"pamaka":   0x42,
    	"peano":    0x43,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 153K bytes
    - Viewed (0)
  3. src/log/slog/internal/benchmarks/benchmarks_test.go

    		name     string
    		h        slog.Handler
    		skipRace bool
    	}{
    		{"disabled", disabledHandler{}, false},
    		{"async discard", newAsyncHandler(), true},
    		{"fastText discard", newFastTextHandler(io.Discard), false},
    		{"Text discard", slog.NewTextHandler(io.Discard, nil), false},
    		{"JSON discard", slog.NewJSONHandler(io.Discard, nil), false},
    	} {
    		logger := slog.New(handler.h)
    		b.Run(handler.name, func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. src/log/log_test.go

    		buf.Reset()
    		l.Println(testString)
    	}
    }
    
    // discard is identical to io.Discard,
    // but copied here to avoid the io.Discard optimization in Logger.
    type discard struct{}
    
    func (discard) Write(p []byte) (int, error) {
    	return len(p), nil
    }
    
    func BenchmarkConcurrent(b *testing.B) {
    	l := New(discard{}, "prefix: ", Ldate|Ltime|Lmicroseconds|Llongfile|Lmsgprefix)
    	var group sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/dependencysubstitution/DependencySubstitutionsInternal.java

        void setMutationValidator(MutationValidator validator);
    
        DependencySubstitutionsInternal copy();
    
        /**
         * Discard all state held by this container.
         */
        void discard();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/genericiooptions/io_options.go

    }
    
    // NewTestIOStreamsDiscard returns a valid IOStreams that just discards
    func NewTestIOStreamsDiscard() IOStreams {
    	in := &bytes.Buffer{}
    	return IOStreams{
    		In:     in,
    		Out:    io.Discard,
    		ErrOut: io.Discard,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 14:05:23 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHub.java

     */
    public class MessageHub implements AsyncStoppable {
        private enum State {Running, Stopping, Stopped}
    
        private static final Discard DISCARD = new Discard();
        private final ManagedExecutor workers;
        private final String displayName;
        private final Action<? super Throwable> errorHandler;
        private final Lock lock = new ReentrantLock();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  8. src/image/png/writer_test.go

    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		Encode(io.Discard, img)
    	}
    }
    
    func BenchmarkEncodeNRGBA(b *testing.B) {
    	img := image.NewNRGBA(image.Rect(0, 0, 640, 480))
    	if img.Opaque() {
    		b.Fatal("expected image not to be opaque")
    	}
    	b.SetBytes(640 * 480 * 4)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		Encode(io.Discard, img)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 14 08:14:05 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  9. src/io/ioutil/ioutil.go

    func NopCloser(r io.Reader) io.ReadCloser {
    	return io.NopCloser(r)
    }
    
    // Discard is an io.Writer on which all Write calls succeed
    // without doing anything.
    //
    // Deprecated: As of Go 1.16, this value is simply [io.Discard].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/compress/lzw/writer_test.go

    			b.SetBytes(int64(n))
    			for i := 0; i < b.N; i++ {
    				w := NewWriter(io.Discard, LSB, 8)
    				w.Write(buf1)
    				w.Close()
    			}
    		})
    		b.Run(fmt.Sprint("1e-Reuse", e), func(b *testing.B) {
    			b.SetBytes(int64(n))
    			w := NewWriter(io.Discard, LSB, 8)
    			for i := 0; i < b.N; i++ {
    				w.Write(buf1)
    				w.Close()
    				w.(*Writer).Reset(io.Discard, LSB, 8)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 11:00:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top