Glide.with(Context) very very slow (takes 1 sec)
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
Hello,
I'm using glide 4.9.0
To have a faster initialization in a Class of mine, I use glide to perform asyncronous load of an image.
The code is:
FutureTarget mBitmapTarget = null;
mBitmapTarget =
GlideApp.with( context )
.asBitmap()
.apply( new RequestOptions()
.diskCacheStrategy(DiskCacheStrategy.NONE) )
.load(R.drawable.my_png_image)
.submit();
The load works correctly... but I noticed a very slow Glide initialization time (such that a direct load would be better).
Here are the image of a java sampling profiling.

In this profiling session, GlideApp.with takes about 1sec, and the entire command about 1.15sec
In the profiling session, probably the App run slower than usually (it was debug and sampled), and real number may be smaller, but anyway it's a great and significative part of the entire App initialization.
Contributor guide
Assessment
This issue has not been assessed yet.