We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5641acd commit 0ac2be7Copy full SHA for 0ac2be7
3 files changed
toolchain/mfc/viz/_step_cache.py
@@ -28,7 +28,7 @@
28
29
logger = logging.getLogger(__name__)
30
31
-CACHE_MAX: int = 20
+CACHE_MAX: int = 40
32
_cache: dict = {}
33
_cache_order: list = []
34
_in_flight: set = set() # steps currently being prefetched
@@ -44,7 +44,7 @@ def _get_prefetch_pool() -> ThreadPoolExecutor:
44
with _prefetch_pool_lock:
45
if _prefetch_pool is None:
46
_prefetch_pool = ThreadPoolExecutor(
47
- max_workers=1, thread_name_prefix='mfc_prefetch')
+ max_workers=3, thread_name_prefix='mfc_prefetch')
48
atexit.register(_prefetch_pool.shutdown, wait=False)
49
return _prefetch_pool
50
0 commit comments