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 the project model to avoid regenerate it on every program run #120

Open
TheRustifyer opened this issue Jul 14, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request refactor

Comments

@TheRustifyer
Copy link
Member

Refactor

This is a sub-issue of #110 with the changes on PR #109

Details

By adding a last_time_modification to the ConfigFile struct that is returned when we look for the user's configuration files, we can check if the file has been modified after the last run or not, so we can completely cache the generated ProjectModel and load it from the fs without having to remap on every iteration every configuration file to its ProjectModel entity

@TheRustifyer TheRustifyer added enhancement New feature or request refactor labels Jul 14, 2024
@TheRustifyer TheRustifyer self-assigned this Jul 14, 2024
TheRustifyer added a commit that referenced this issue Jul 14, 2024
…ty instead of mapping the target cfg to the project model on every iteration. Closes #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor
Projects
Status: In Progress
Development

No branches or pull requests

1 participant