Skip to content

Commit d7635bd

Browse files
paulsowdensjudd
authored andcommitted
Minor optimization to avoid calling currentTimeMillis when not logging.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187644617
1 parent 1937b05 commit d7635bd

File tree

1 file changed

+1
-1
lines changed
  • library/src/main/java/com/bumptech/glide/load/engine

1 file changed

+1
-1
lines changed

library/src/main/java/com/bumptech/glide/load/engine/Engine.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public <R> LoadStatus load(
166166
boolean onlyRetrieveFromCache,
167167
ResourceCallback cb) {
168168
Util.assertMainThread();
169-
long startTime = LogTime.getLogTime();
169+
long startTime = VERBOSE_IS_LOGGABLE ? LogTime.getLogTime() : 0;
170170

171171
EngineKey key = keyFactory.buildKey(model, signature, width, height, transformations,
172172
resourceClass, transcodeClass, options);

0 commit comments

Comments
 (0)