Package Info

python-smmap2


A pure python implementation of a sliding window memory map manager


Development/Languages/Python

Smmap wraps an interface around mmap and tracks the mapped files as well as the amount of clients who use it. If the system runs out of resources, or if a memory limit is reached, it will automatically unload unused maps to allow continued operation.

To allow processing large files even on 32 bit systems, it allows only portions of the file to be mapped. Once the user reads beyond the mapped region, smmap will automatically map the next required region, unloading unused regions using a LRU algorithm.

The interface also works around the missing offset parameter in python implementations up to python 2.5.

Although the library can be used most efficiently with its native interface, a Buffer implementation is provided to hide these details behind a simple string-like interface.

For performance critical 64 bit applications, a simplified version of memory mapping is provided which always maps the whole file, but still provides the benefit of unloading unused mappings on demand.


License: BSD-3-Clause
URL: https://github.com/Byron/smmap

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
2.0.5-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-smmap2
2.0.5-bp155.2.9 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-smmap2
2.0.5-bp154.1.21 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-smmap2
2.0.5-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-smmap2
  • python3-smmap2
2.0.5-bp152.3.17 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-smmap2
  • python3-smmap2
2.0.5-bp151.1.1 info GA Release 2019-05-29 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-smmap2
  • python3-smmap2