-
-
Notifications
You must be signed in to change notification settings - Fork 1k
adds Strip primitive #1444
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
adds Strip primitive #1444
Conversation
| self._head = [] | ||
| self._cache.clear() | ||
| self._full = False | ||
| self._head = [] |
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.
Should it also clear hits and misses counts?
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.
The hits and misses are a debugging aid to see how well the cache is performing. You generally want to know about past performance even when it is cleared.
|
@darrenburns @davep @rodrigogiraoserrao Merging this. You might want to do a retroactive review at some point. #executivedecision |
Stripprimitive which represents a line worth of segments.hitsandmissesattributes to LRUCachetextual._cache.FIFOCacheBecause Strip is immutable this allows for caching that wouldn't otherwise have been possible. Not all these optimizations have been fully realized yet