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

Cache read / write speedup #115

Open
sounisi5011 opened this issue Dec 23, 2019 · 0 comments
Open

Cache read / write speedup #115

sounisi5011 opened this issue Dec 23, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@sounisi5011
Copy link
Owner

Cache data is stored in files using flat-cache.

https://github.com/sounisi5011/metalsmith-netlify-published-date/blob/74136db05065dbf5e97c89d45d3cdcc498acd37c/src/cache/preview.ts

The format of the cache data is JSON. For this reason, special conversion processing is performed to store Buffer in JSON. This is a problem caused by using JSON, and is a useless conversion.

Also, since all cache data needs to be parsed, the processing speed will be reduced if the cache becomes too large.

There are two problems to solve:


References:

@sounisi5011 sounisi5011 added the enhancement New feature or request label Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant