This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| LRU-K evicts the page whose K-th most recent access is furthest in the past. | |
| This is a basic implementation of LRU-2, which evicts entries according to the time | |
| of their penultimate access. The main benefit of this approach is to prevent | |
| a problem when the items being checked exceeds the number of items in the cache. A | |
| classic LRU will evict and repopulate the cache for every call. LRU-2 reduces the | |
| likelihood of this, but not preferring the MRU item to be retained. | |
| LRU-K should be used in conjunction with eviction limits per query - this appears to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cython: language_level=3 | |
| # cython: nonecheck=False | |
| # cython: cdivision=True | |
| # cython: initializedcheck=False | |
| # cython: infer_types=True | |
| # cython: wraparound=True | |
| # cython: boundscheck=False | |
| """ | |
| This is a Cython memory pool, it reserves a block of memory and supports reading and writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Test Harness | |
| This module provides a set of utility functions and decorators to assist with | |
| conditional test execution, platform-specific checks, and test result reporting | |
| when running pytest tests locally. | |
| It includes functionality to: | |
| - Check the platform and Python implementation (e.g., ARM architecture, Windows, macOS, PyPy). |
OlderNewer