diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2011-07-05 16:45:39 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2011-07-05 16:45:39 +0200 |
| commit | a4deb8461e6fbca0306a24f22b0c494679ad4757 (patch) | |
| tree | 3ac61ab9a5b5404236a898e16bfb59e267b39516 /gitdb | |
| parent | ef5dc3d968b3aeed16a02ec705f89b72ad46fa84 (diff) | |
| download | gitdb-a4deb8461e6fbca0306a24f22b0c494679ad4757.tar.gz | |
wrote change log for next release.
Choosing memory manager type based on the actual python version for best efficiency
Diffstat (limited to 'gitdb')
| -rw-r--r-- | gitdb/util.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gitdb/util.py b/gitdb/util.py index e96c133..013f5fc 100644 --- a/gitdb/util.py +++ b/gitdb/util.py @@ -31,7 +31,11 @@ from smmap import ( # initialize our global memory manager instance # Use it to free cached (and unused) resources. -mman = SlidingWindowMapManager() +if sys.version_info[1] < 6: + mman = StaticWindowMapManager() +else: + mman = SlidingWindowMapManager() +#END handle mman try: import hashlib |
