Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing a cache mechanism #188

Open
scripthunter7 opened this issue Oct 30, 2023 · 1 comment
Open

Implementing a cache mechanism #188

scripthunter7 opened this issue Oct 30, 2023 · 1 comment

Comments

@scripthunter7
Copy link
Member

We need to implement a caching mechanism that allows us to check only the changed files. For example, writing information to .aglintcache as ESLint does. See https://eslint.org/docs/latest/use/command-line-interface#caching

In addition, we can introduce a cache for the parser, so that, for example, we don't have to parse CSS from scratch every time. In the new v2 version of AGTree, the CSS parsing will change to a faster and simpler implementation, but in AGLint, full CSS parsing by ECSSTree is still required to fully validate the syntax, and this can be accelerated by the cache.

Cache settings should also be available from the CLI.

@scripthunter7
Copy link
Member Author

For workflows, we should take a look at https://github.com/actions/cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants