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

[REC] Cache the values #5

Open
DisheartenedEthereal opened this issue Dec 19, 2021 · 2 comments
Open

[REC] Cache the values #5

DisheartenedEthereal opened this issue Dec 19, 2021 · 2 comments

Comments

@DisheartenedEthereal
Copy link

DisheartenedEthereal commented Dec 19, 2021

Hello, here's a suggestion

Implement a caching system that caches the more "stable*" values in a file under /tmp, this method reduces file IO from 4-5 to 1, it could improve performance and make room for future expansion

If you want, i also can implement this feature.

Here's an example:

#cat /tmp/treecache/

hostname : ethereal
key1 : value1
key2 : value2

And also an argument to delete it:

treefetch -R :

Removes the temp file
Treefetch

@angelofallars
Copy link
Owner

Sounds interesting! treefetch is already fast enough as it is, mainly due to using a compiled language (Rust) instead of using Shell. But I'm still open to see how this caching system would work. If you can implement it, I'll see if it's worth adding into the program.

@DisheartenedEthereal
Copy link
Author

Sure, I'll try in a few days :D

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

No branches or pull requests

2 participants