From 7b06480d7ef4e7b83d7935d8eaa081cb62bf4f46 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 14 Feb 2019 22:14:32 +0000 Subject: [PATCH] Major speed-up for bulk scanning of images. --- volatility/framework/interfaces/layers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/volatility/framework/interfaces/layers.py b/volatility/framework/interfaces/layers.py index 5eb7e4f6f..38277948e 100644 --- a/volatility/framework/interfaces/layers.py +++ b/volatility/framework/interfaces/layers.py @@ -369,6 +369,7 @@ class TranslationLayerInterface(DataLayerInterface, metaclass = ABCMeta): # ## Read/Write functions for mapped pages + @functools.lru_cache(maxsize = 512) def read(self, offset: int, length: int, pad: bool = False) -> bytes: """Reads an offset for length bytes and returns 'bytes' (not 'str') of length size""" current_offset = offset