diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2023-11-30 02:09:40 -0500 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2023-11-30 17:14:14 +0800 |
| commit | a3ee4ce8fcc9cc511c233923913809967f4a9e71 (patch) | |
| tree | 8e2d07da6cf3faba3a27d2b7d57b03ca63717227 /python | |
| parent | 15ddcf7763854a57c727b5c7391b7407f595547e (diff) | |
scale AdvancedILFunction preloading based on worker thread count instead 5
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index ae27a6ad..77a1d1e4 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -62,6 +62,7 @@ from . import variable from . import architecture from . import filemetadata from . import lowlevelil +from . import mainthread from . import mediumlevelil from . import highlevelil from . import debuginfo @@ -1894,7 +1895,7 @@ class AdvancedILFunctionList: >>> timeit.timeit(lambda:[f for f in bv.functions], number=1) 0.02230275600004461 """ - def __init__(self, view: 'BinaryView', preload_limit: int = 5, functions: Optional[Iterable] = None): + def __init__(self, view: 'BinaryView', preload_limit: int = mainthread.get_worker_thread_count(), functions: Optional[Iterable] = None): self._view = view self._func_queue = deque() self._preload_limit = preload_limit |
