From cf5cf5cacdf01b0a007b7a430c0c9638fdf1f204 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Sat, 11 May 2019 20:58:06 +0100 Subject: [PATCH] Add in caching just at the page read point of intel spaces. --- volatility/framework/layers/intel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volatility/framework/layers/intel.py b/volatility/framework/layers/intel.py index f28bc4ad9..844c30747 100644 --- a/volatility/framework/layers/intel.py +++ b/volatility/framework/layers/intel.py @@ -19,6 +19,7 @@ # import collections +import functools import logging import math import struct @@ -175,6 +176,7 @@ class Intel(interfaces.layers.TranslationLayerInterface): return entry, position + @functools.lru_cache(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.memory.read(self._base_layer, base_address, self.page_size)