Skip to content

This change introduces a mechanism in Glide's BitmapPool to prevent reusing bitmaps from the pool if the size difference between the requested bitmap and the available bitmap exceeds certain thresholds. The thresholds are defined by a maximum byte limit and a maximum ratio of wasted bytes to requested bytes. #5285

This change introduces a mechanism in Glide's BitmapPool to prevent reusing bitmaps from the pool if the size difference between the requested bitmap and the available bitmap exceeds certain thresholds. The thresholds are defined by a maximum byte limit and a maximum ratio of wasted bytes to requested bytes.

This change introduces a mechanism in Glide's BitmapPool to prevent reusing bitmaps from the pool if the size difference between the requested bitmap and the available bitmap exceeds certain thresholds. The thresholds are defined by a maximum byte limit and a maximum ratio of wasted bytes to requested bytes. #5285

Workflow file for this run

name: Android CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run Gradle Build
run: |
./gradlew build \
-x :library:test:testDebugUnitTest \
:library:test:assembleDebugUnitTest \
-x :library:testDebugUnitTest \
:library:assembleDebugUnitTest \
-x :annotation:ksp:test:testDebugUnitTest \
:annotation:ksp:test:assembleDebugUnitTest \
-x :third_party:disklrucache:testDebugUnitTest \
:third_party:disklrucache:assembleDebugUnitTest \
-x :integration:cronet:testDebugUnitTest \
:integration:cronet:assembleDebugUnitTest \
-x :integration:gifencoder:testDebugUnitTest \
:integration:gifencoder:assembleDebugUnitTest \
-x :integration:ktx:testDebugUnitTest \
:integration:ktx:assembleDebugUnitTest \
-x :integration:concurrent:testDebugUnitTest \
:integration:concurrent:assembleDebugUnitTest \
-x :integration:volley:testDebugUnitTest \
:integration:volley:assembleDebugUnitTest \
-x :integration:sqljournaldiskcache:testDebugUnitTest \
:integration:sqljournaldiskcache:assembleDebugUnitTest \
-x :third_party:gif_decoder:testDebugUnitTest \
:third_party:gif_decoder:assembleDebugUnitTest \
:samples:flickr:build \
:samples:giphy:build \
:samples:contacturi:build \
:samples:gallery:build \
:samples:imgur:build \
:samples:svg:build \
:instrumentation:assembleAndroidTest \
:benchmark:assembleAndroidTest \
:glide:releaseJavadoc \
:annotation:ksp:test:test \
:integration:ktx:apiCheck \
:annotation:ksp:integrationtest:test \
--parallel