Layers: Restore get_valid_table caching

Partially restore performance as per #1618
This commit is contained in:
Mike Auty
2025-02-16 18:24:23 +00:00
parent 81bac4db11
commit d5976146fb
+1
View File
@@ -284,6 +284,7 @@ class Intel(linear.LinearlyMappedLayer):
return entry, position
@functools.lru_cache(maxsize=1025)
def _get_valid_table(self, base_address: int) -> Optional[bytes]:
"""Extracts the table, validates it and returns it if it's valid."""
table = self._context.layers.read(