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 workspaces based on last write time #34

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

SvenMarcus
Copy link
Collaborator

Replaces lru_cache with a new path_cache decorator that only calls the decorated function if the last modified time of a given path is newer than the cached time. Addresses #5

Copy link
Collaborator

@markusweigelt markusweigelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx! The source code looks good to me. However, currently, the pytest isn't completing successfully.

I assume that this implementation doesn't resolve the issue #5

@SvenMarcus
Copy link
Collaborator Author

Thx! The source code looks good to me. However, currently, the pytest isn't completing successfully.

I assume that this implementation doesn't resolve the issue #5

Working with floats directly seems to do the trick.

@markusweigelt markusweigelt merged commit f7d1293 into slub:main Aug 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants