- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 160 for Optimize (3.36 sec)
-
guava/src/com/google/common/primitives/Longs.java
} Object[] boxedArray = collection.toArray(); int len = boxedArray.length; long[] array = new long[len]; for (int i = 0; i < len; i++) { // checkNotNull for GWT (do not optimize) array[i] = ((Number) checkNotNull(boxedArray[i])).longValue(); } return array; } /** * Returns a fixed-size list backed by the specified array, similar to {@link
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 28.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
} int[] stripes = new int[result.size()]; for (int i = 0; i < result.size(); i++) { stripes[i] = indexFor(result.get(i)); } Arrays.sort(stripes); // optimize for runs of identical stripes int previousStripe = stripes[0]; result.set(0, getAt(previousStripe)); for (int i = 1; i < result.size(); i++) { int currentStripe = stripes[i];
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 20:55:18 UTC 2023 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/walk/compare.go
// This is efficient, avoids allocations, and avoids runtime calls. // // TODO(mdempsky): It would be more general and probably overall // simpler to just extend walkCompareInterface to optimize when one // operand is an OCONVIFACE. if n.X.Type().IsInterface() != n.Y.Type().IsInterface() { // Preserve side-effects in case of short-circuiting; see #32187. l := cheapExpr(n.X, init) r := cheapExpr(n.Y, init)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 16.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
return "CharSource.wrap(" + Ascii.truncate(seq, 30, "...") + ")"; } } /** * Subclass specialized for string instances. * * <p>Since Strings are immutable and built into the jdk we can optimize some operations * * <ul> * <li>use {@link StringReader} instead of {@link CharSequenceReader}. It is faster since it can
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 22.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
* * @author Jared Levy * @author Louis Wasserman * @since 2.0 (implements {@code NavigableSet} since 12.0) */ // TODO(benyu): benchmark and optimize all creation paths, which are a mess now @GwtCompatible(serializable = true, emulated = true) @SuppressWarnings("serial") // we're overriding default serialization @ElementTypesAreNonnullByDefault
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 36.8K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FluentFuture.java
@ElementTypesAreNonnullByDefault public abstract class FluentFuture<V extends @Nullable Object> extends GwtFluentFutureCatchingSpecialization<V> { /** * A less abstract subclass of AbstractFuture. This can be used to optimize setFuture by ensuring * that {@link #get} calls exactly the implementation of {@link AbstractFuture#get}. */ abstract static class TrustedFuture<V extends @Nullable Object> extends FluentFuture<V>
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 11 19:08:44 UTC 2023 - 19.6K bytes - Viewed (0) -
schema/relationship.go
} if matched { return nil } } } } var ( name string idx = strings.Index(str, ",") settings = ParseTagSetting(str, ",") ) // optimize match english letters and midline // The following code is basically called in for. // In order to avoid the performance problems caused by repeated compilation of regular expressions,
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 22.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/schedule.go
// in which it lives. (block control values don't count as uses.) inBlockUses := f.Cache.allocBoolSlice(f.NumValues()) defer f.Cache.freeBoolSlice(inBlockUses) if f.Config.optimize { for _, b := range f.Blocks { for _, v := range b.Values { for _, a := range v.Args { if a.Block == b { inBlockUses[a.ID] = true } } } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 15:53:17 UTC 2024 - 16.4K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSource.java
return "CharSource.wrap(" + Ascii.truncate(seq, 30, "...") + ")"; } } /** * Subclass specialized for string instances. * * <p>Since Strings are immutable and built into the jdk we can optimize some operations * * <ul> * <li>use {@link StringReader} instead of {@link CharSequenceReader}. It is faster since it can
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 25.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
@ElementTypesAreNonnullByDefault public abstract class FluentFuture<V extends @Nullable Object> extends GwtFluentFutureCatchingSpecialization<V> { /** * A less abstract subclass of AbstractFuture. This can be used to optimize setFuture by ensuring * that {@link #get} calls exactly the implementation of {@link AbstractFuture#get}. */ abstract static class TrustedFuture<V extends @Nullable Object> extends FluentFuture<V>
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 11 19:08:44 UTC 2023 - 18.7K bytes - Viewed (0)