1. 25 10月, 2017 2 次提交
  2. 24 10月, 2017 4 次提交
  3. 23 10月, 2017 8 次提交
  4. 21 10月, 2017 5 次提交
  5. 20 10月, 2017 2 次提交
  6. 19 10月, 2017 3 次提交
  7. 18 10月, 2017 7 次提交
  8. 17 10月, 2017 1 次提交
  9. 16 10月, 2017 1 次提交
  10. 14 10月, 2017 1 次提交
  11. 13 10月, 2017 4 次提交
  12. 12 10月, 2017 2 次提交
    • S
      Add an animation executor to decode GIF frames on. · c4db04ed
      Sam Judd 提交于
      Our normal source executor is often used to load data from networks. Glide’s default networking library runs all networking operations on Glide’s source executor. OkHttp runs the initial connection on its own
      thread pool, but we still read and write the body of each request to our ache on Glide’s source executor. Even libraries like Volley that buffer
      the entire request into memory will still require a few hundred milliseconds of Glide’s source executor’s time to write the request to 
      cache.
      
      Scrolling through a list of images will enqueue a large number of requests. If each request is relatively time consuming, it’s likely that
      all of Glide’s source executor threads will end up blocked for 
      significant periods of time, even if the longer requests are lower priority. Using a different executor for GIF frames and other animations
      lets us avoid junk during playback. 
      
      Unfortunately there is a CPU and memory hit to using an additional executor. I’ve tried to limit that here by using only one or two threads
      and a cached thread pool so that few threads are created and are only
      created when an animation is actually run.
      
      Fixes #899
      c4db04ed
    • B
      Fix a couple of import code style nits. · 6cd8289d
      brettchabot 提交于
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=171739060
      6cd8289d