smmap
smmap copied to clipboard
A sliding memory map manager
I was hoping to get this to run under PyPy but this is happening. ``` ====================================================================== FAIL: test_basics (smmap.test.test_buf.TestBuf) ---------------------------------------------------------------------- Traceback (most recent call last): File "smmap-5.0.0/smmap/test/test_buf.py", line 114, in...
## BREAKING API: - retrofit `git.util.mman` as context-manager, to release memory-mapped regions held. The _mmap-manager(s)_ are re-entrant, but not thread-safe **context-manager(s)**, to be used within a `with ...:` block, ensuring...
Probably 70fae1f98bb7 made a double acounting of region-clients in [`smmap.mman.py#L136`](https://github.com/gitpython-developers/smmap/blob/master/smmap/mman.py#L136), where a "manual" `increment_client_count()` follows a `_obtain_region()` which it also increments the client-count. From _gitdb_ TC `gitdb.test.test_pack:TestPack.test_pack_entity()` I can see...