-
-
Notifications
You must be signed in to change notification settings - Fork 14
London | 25-SDC-July | Mikiyas Gebremichael | Sprint 2 | Implement lru cache in python #36
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
base: main
Are you sure you want to change the base?
Conversation
…ct the LRU least recently used if the limit reaches
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). |
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). |
2 similar comments
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). |
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). |
OracPrime
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good code that works and demonstrates and understanding of the problem and how to implement a doubly linked list (which is easy to get wrong). As an answer to an academic exercise it is fine. In a real-world scenario I would encourage you to look at Python's OrderedDict
Learners, PR Template
Self checklist
Changelist
Implemented an LRU cache (Least Recently Used cache) which stores a limited number of recent results to speed up repeated operations.
When the cache is full, it automatically removes the least recently used item to make space for new data.
This trades memory for faster performance, reducing repeated computation or data fetching.
Questions
None