Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for Resize (0.08 sec)

  1. android/guava/src/com/google/common/collect/CompactHashSet.java

          newDelegate.addAll(delegate);
          this.table = newDelegate;
          return;
        }
        int size = this.size;
        if (size < requireEntries().length) {
          resizeEntries(size);
        }
        int minimumTableSize = CompactHashing.tableSize(size);
        int mask = hashTableMask();
        if (minimumTableSize < mask) { // smaller table size will always be less than current mask
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 23.9K bytes
    - Viewed (0)
  2. tests/lru_test.go

    	if !reflect.DeepEqual(lc.Keys(), []string{"key1"}) {
    		t.Fatalf("value differs from expected")
    	}
    
    	if lc.Resize(0) != 0 {
    		t.Fatalf("evicted count differs from expected")
    	}
    	if lc.Resize(2) != 0 {
    		t.Fatalf("evicted count differs from expected")
    	}
    	lc.Add("key2", "val2")
    	if lc.Resize(1) != 1 {
    		t.Fatalf("evicted count differs from expected")
    	}
    }
    
    func TestLRUEdgeCases(t *testing.T) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            final String testCommand = "convert ${url} -resize 100x100 ${outputFile}";
            final String tempPath = "/tmp/source.pdf";
            final String outputPath = "/tmp/thumbnail.jpg";
    
            final String expandedCommand = testCommand.replace("${url}", tempPath).replace("${outputFile}", outputPath);
    
            assertEquals("convert /tmp/source.pdf -resize 100x100 /tmp/thumbnail.jpg", expandedCommand);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

        }
        int size = this.size;
        if (size < requireEntries().length) {
          resizeEntries(size);
        }
        int minimumTableSize = CompactHashing.tableSize(size);
        int mask = hashTableMask();
        if (minimumTableSize < mask) { // smaller table size will always be less than current mask
          resizeTable(mask, minimumTableSize, UNSET, UNSET);
        }
      }
    
      @Override
      public void clear() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashMap.java

        int size = this.size;
        if (size < requireEntries().length) {
          resizeEntries(size);
        }
        int minimumTableSize = CompactHashing.tableSize(size);
        int mask = hashTableMask();
        if (minimumTableSize < mask) { // smaller table size will always be less than current mask
          resizeTable(mask, minimumTableSize, UNSET, UNSET);
        }
      }
    
      @Override
      public void clear() {
        if (needsAllocArrays()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  6. internal/lru/lru.go

    	return c.evictList.Length()
    }
    
    // Resize changes the cache size. Size of 0 means unlimited.
    func (c *LRU[K, V]) Resize(size int) (evicted int) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if size <= 0 {
    		c.size = 0
    		return 0
    	}
    	diff := c.evictList.Length() - size
    	if diff < 0 {
    		diff = 0
    	}
    	for i := 0; i < diff; i++ {
    		c.removeOldest()
    	}
    	c.size = size
    	return diff
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      // entry in a *single* long[], though that reduces the maximum size of the set by a factor of 2
    
      /**
       * Pointer to the predecessor of an entry in insertion order. ENDPOINT indicates a node is the
       * first node in insertion order; all values at indices ≥ {@link #size()} are UNSET.
       */
      private transient int @Nullable [] predecessor;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.33.md

    - The pod `status.resize` field is now deprecated and will no longer be set. The status of a pod resize will be exposed under two new conditions: `PodResizeInProgress` and `PodResizePending` instead. ([#130733](https://github.com/kubernetes/kubernetes/pull/130733), [@natasha41575](https://github.com/natasha41575))...
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Aug 13 19:46:23 UTC 2025
    - 294.3K bytes
    - Viewed (0)
  9. CHANGELOG/CHANGELOG-1.34.md

    - Implemented prioritization of resize requests based on `priorityClass` and QoS class when node resources are insufficient to accommodate all pending resize operations. ([#132342](https://github.com/kubernetes/kubernetes/pull/132342), [@natasha41575](https://github.com/natasha41575)) [SIG Node and Testing]
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Aug 27 10:36:10 UTC 2025
    - 292.8K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.32.md

    renamed to NodeToStatusReader. ([#126022](https://github.com/kubernetes/kubernetes/pull/126022), [@macsko](https://github.com/macsko)) [SIG Node, Scheduling, and Testing]
    
    - A new /resize subresource was added to request pod resource resizing. Update your k8s client code to utilize the /resize subresource for Pod resizing operations. ([#128266](https://github.com/kubernetes/kubernetes/pull/128266), [@AnishShah](https://github.com/AnishShah)) [SIG API Machinery, Apps, Node and Testing]...
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Aug 13 14:49:49 UTC 2025
    - 412.3K bytes
    - Viewed (0)
Back to top