diff options
| author | Ajax <commial@gmail.com> | 2016-01-08 17:46:42 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-01-08 17:46:42 +0100 |
| commit | 6fde824b01e3ef0775b7503a153048f4375a68b1 (patch) | |
| tree | 88448cda8d9b0580f200d557d059163a06ce7d3e /miasm2/core/bin_stream.py | |
| parent | 870b4c899e32455c34186cf521d12a18b8070db1 (diff) | |
| download | miasm-6fde824b01e3ef0775b7503a153048f4375a68b1.tar.gz miasm-6fde824b01e3ef0775b7503a153048f4375a68b1.zip | |
BinStream: use a standard dict instead of a bounded one
Generally, the cache is not very large. Using a dict is more effective.
Diffstat (limited to 'miasm2/core/bin_stream.py')
| -rw-r--r-- | miasm2/core/bin_stream.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miasm2/core/bin_stream.py b/miasm2/core/bin_stream.py index 074290af..cfcdf8a5 100644 --- a/miasm2/core/bin_stream.py +++ b/miasm2/core/bin_stream.py @@ -16,7 +16,6 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # import math -from miasm2.core.utils import BoundedDict class bin_stream(object): @@ -40,7 +39,7 @@ class bin_stream(object): """Enter atomic mode. In this mode, read may be cached""" assert not self._atomic_mode self._atomic_mode = True - self._cache = BoundedDict(self.CACHE_SIZE) + self._cache = {} def leave_atomic_mode(self): """Leave atomic mode""" |