Major speed-up for bulk scanning of images.

This commit is contained in:
Mike Auty
2019-02-14 22:14:32 +00:00
parent b6e3b8c5cc
commit 7b06480d7e
@@ -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