Skip to content

Commit

Permalink
Minor optimization to avoid calling currentTimeMillis when not logging.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187644617
  • Loading branch information
paulsowden authored and sjudd committed Mar 6, 2018
1 parent 1937b05 commit d7635bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public <R> LoadStatus load(
boolean onlyRetrieveFromCache,
ResourceCallback cb) {
Util.assertMainThread();
long startTime = LogTime.getLogTime();
long startTime = VERBOSE_IS_LOGGABLE ? LogTime.getLogTime() : 0;

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

0 comments on commit d7635bd

Please sign in to comment.