Commit 7e7c56fc authored by Sam Maier's avatar Sam Maier Committed by Commit Bot

Android: moving download notify invalidations to thread pool

Currently, AsyncTask.execute() defaults to the SERIAL_EXECUTOR. This
exector is good for preventing concurrency errors since it guarantees
serial execution, but bad for performance since the entire app shares
this single queue.

It looks like this callsite can use the THREAD_POOL_EXECUTOR instead,
since this use doesn't appear to rely on the concurrency guarantees that
SERIAL_EXECUTOR provides.

Bug: 869907
Change-Id: I5280674dd8afefbbfbcadbf0b41acf2aaba0b8a1
Reviewed-on: https://chromium-review.googlesource.com/1159207Reviewed-by: default avatarTommy Nyquist <nyquist@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580172}
parent 59435c3a
......@@ -82,7 +82,8 @@ public class DelayedInvalidationsController {
}
return null;
}
}.execute();
}
.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment