Skip to content

Commit a4deb84

Browse files
committed
wrote change log for next release.
Choosing memory manager type based on the actual python version for best efficiency
1 parent ef5dc3d commit a4deb84

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

doc/source/changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
#########
44

5+
*****
6+
0.5.4
7+
*****
8+
* Adjusted implementation to use the SlidingMemoryManager by default in python 2.6 for efficiency reasons. In Python 2.4, the StaticMemoryManager will be used instead.
9+
510
*****
611
0.5.3
712
*****

gitdb/util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131

3232
# initialize our global memory manager instance
3333
# Use it to free cached (and unused) resources.
34-
mman = SlidingWindowMapManager()
34+
if sys.version_info[1] < 6:
35+
mman = StaticWindowMapManager()
36+
else:
37+
mman = SlidingWindowMapManager()
38+
#END handle mman
3539

3640
try:
3741
import hashlib

0 commit comments

Comments
 (0)