- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 8,607 for interned (0.18 sec)
-
subprojects/core/src/main/java/org/gradle/util/internal/SimpleMapInterner.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 1.6K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/impl/string.h
namespace tf { namespace libtf { namespace impl { /** A string value. * This class wraps an interned, immutable string value. Currently, interned * values are never deleted, so memory usage increases without bound as new * strings are created. */ class String final { public: /** Interning constructor. * Interns the given string value. */ explicit String(const char* s); String() : String("") {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 30 17:28:28 UTC 2021 - 2.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
/** * Returns a function that delegates to the {@link Interner#intern} method of the given interner. * * @since 8.0 */ public static <E> Function<E, E> asFunction(Interner<E> interner) { return new InternerFunction<>(checkNotNull(interner)); } private static class InternerFunction<E> implements Function<E, E> { private final Interner<E> interner; public InternerFunction(Interner<E> interner) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interner.java
/** * Provides similar behavior to {@link String#intern} for any immutable type. Common implementations * are available from the {@link Interners} class. * * <p>Note that {@code String.intern()} has some well-known performance limitations, and should * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner} * implementation even for {@code String} interning. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
/** * Returns a function that delegates to the {@link Interner#intern} method of the given interner. * * @since 8.0 */ public static <E> Function<E, E> asFunction(Interner<E> interner) { return new InternerFunction<>(checkNotNull(interner)); } private static class InternerFunction<E> implements Function<E, E> { private final Interner<E> interner; public InternerFunction(Interner<E> interner) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interner.java
/** * Provides similar behavior to {@link String#intern} for any immutable type. Common implementations * are available from the {@link Interners} class. * * <p>Note that {@code String.intern()} has some well-known performance limitations, and should * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner} * implementation even for {@code String} interning. *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/api/internal/cache/StringInternerTest.groovy
*/ package org.gradle.api.internal.cache import spock.lang.Specification import spock.lang.Subject class StringInternerTest extends Specification { @Subject StringInterner stringInterner = new StringInterner() def "should return null when null is passed to intern method"() { expect: stringInterner.intern(null) == null }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 2.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
Random random = new Random(); int sizeRemaining = size; // TODO(kevinb): generate better test contents for multisets for (int i = 0; sizeRemaining > 0; i++) { // The JVM will return interned values for small ints. Integer value = random.nextInt(1000) + 128; int count = Math.min(random.nextInt(10) + 1, sizeRemaining); sizeRemaining -= count; hashMultiset.add(value, count);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/tests/value_test.cc
ASSERT_EQ(stream.str(), "[3, 3, (310, ), ]"); } TEST(ValueTest, TestString) { TaggedValue value1a("string1"); std::string s = "string"; s += "1"; TaggedValue value1b(s.c_str()); // Verify that interned the pointers are the same. ASSERT_EQ(value1b.s(), value1a.s()); TaggedValue value2("string2"); ASSERT_NE(value1a.s(), value2.s()); ASSERT_STREQ(value1a.s(), "string1"); ASSERT_STREQ(value2.s(), "string2"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 01 11:18:25 UTC 2022 - 3.4K bytes - Viewed (0) -
src/internal/coverage/stringtab/stringtab.go
} // Nentries returns the number of strings interned so far. func (stw *Writer) Nentries() uint32 { return uint32(len(stw.strs)) } // Lookup looks up string 's' in the writer's table, adding // a new entry if need be, and returning an index into the table. func (stw *Writer) Lookup(s string) uint32 { if idx, ok := stw.stab[s]; ok { return idx } if stw.frozen { panic("internal error: string table previously frozen") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 12:40:42 UTC 2022 - 3.6K bytes - Viewed (0)