question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Disk Cache Warming

See original GitHub issue

fetch() with no callback coupled with skipCache(). Should not do any bitmap decoding and it should abandon the hold on the connection as soon as possible.

Issue Analytics

  • State:open
  • Created 10 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bibhas2commented, Sep 1, 2016

Any update to this issue? I need to pre-fetch about 500 images and fetch() is unnecessarily decoding each one. Also, it appears that skipCache() has been replaced by something else. Not sure what though.

0reactions
molexxcommented, Aug 24, 2017

I’ve had a root around and it looks like adding:

  if (action instanceof FetchAction) {
    InputStream is = result.getStream();
    Utils.closeQuietly(is);
    return(null);
  }

to BitmapHunter.hunt() before decodeStream() is called does the trick. Memory usage and device load during cache warming (many calls to fetch()) is much lower and the http cache is filled as before.

What might I be missing?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disk Cache Warming Guide | ObjectiveFS
You can warm the disk cache by prefetching file metadata in commonly used directories after your filesystem is mounted. Example command to ...
Read more >
Caching: Cold Cache Vs. Warm Cache - Baeldung
In this tutorial, we'll investigate cold and warm caches. Our objective is to understand the main differences and potential consequences of ...
Read more >
Cache warming: Leveraging EBS for moving petabytes of data
We had previously given an overview of how we perform cache warming on our EVCache clusters and why it's needed.
Read more >
Cache Warming - Qlik Sense Admin Playbook
Cache Warming in Qlik Sense Enterprise refers to programmatically opening Qlik applications so that the base application is preloaded into RAM before users ......
Read more >
Optimize performance with caching on Databricks
When the disk cache is enabled, data that has to be fetched from a remote source is automatically added to the cache. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found