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.

[Feature request] Cache results

See original GitHub issue

When running e.g. eslint and stylelint normally, I always add the --cache option which allows me to run linting significantly faster once the cache has been created.

For example, running eslint with the --cache option in one of our projects takes ~50 seconds to run initially. But running it again, after the first run, takes only around ~2 seconds, which is a lot quicker.

Is this something that could be possible to “hook into” from @betterer/eslint and @betterer/stylelint? Or, if not, would it maybe be possible to create something similar for Betterer in general?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
phenomnomnominalcommented, Jun 14, 2021

Closing this, pretty happy how it’s working! I have some work in progress for full parallelisation too which should improve things further.

0reactions
phenomnomnominalcommented, Jun 11, 2021

Hey @Svish, I just did some more perf fixes (and I have some ideas for the TS performance too), would you mind updating and seeing if you have improvements?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request.cache - Web APIs | MDN
The cache read-only property of the Request interface contains the cache mode of the request. It controls how the request will interact with...
Read more >
requests-cache 0.9.7 documentation
requests -cache is a transparent, persistent cache that provides an easy way to get better performance with the python requests library.
Read more >
The Cache API: A quick guide - web.dev
The Cache API is a system for storing and retrieving network requests and their corresponding responses. These might be regular requests and ...
Read more >
Caching External API Requests - Real Python
Learn how to to cache external API calls in your Python apps with the excellent "requests" module. This tutorial includes a full example...
Read more >
What is Caching and How it Works - AWS
A cache is a high-speed data storage layer which stores a subset of data, typically transient in nature, so that future requests for...
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