mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 21:27:39 +02:00
Add in caching just at the page read point of intel spaces.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user