You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
util: pick the type of memory manager based on the python version, to have optimal results in all cases (at least the ones I can test)
pack: now works properly with a sliding memory manager
test_packedodb_pure: fixed very memory hungry implementation by using an iterator. This will of course reduce the measured performance a bit, but 750MB of memory is just a little bit too much for an ordinary test. Maybe it would be alright to just reduce the number of items ... but performance isn't a strength of python after all
raiseAssertionError("The index file at %s is too large to fit into a mapped window (%i > %i). This is a limitation of the implementation"% (self._indexpath, self._cursor.file_size(), mman.window_size()))
275
+
#END assert window size
272
276
else:
273
277
# now its time to initialize everything - if we are here, someone wants
274
278
# to access the fanout table or related properties
Copy file name to clipboardExpand all lines: git/test/performance/db/test_packedodb_pure.py
+3-4
Original file line number
Diff line number
Diff line change
@@ -49,18 +49,17 @@ def test_pack_writing(self):
49
49
count=0
50
50
total_size=0
51
51
st=time()
52
-
objs=list()
53
52
forshainrorepo.sha_iter():
54
53
count+=1
55
-
objs.append(rorepo.stream(sha))
54
+
rorepo.stream(sha)
56
55
ifcount==ni:
57
56
break
58
57
#END gather objects for pack-writing
59
58
elapsed=time() -st
60
-
print>>sys.stderr, "PDB Streaming: Got %i streams from %s by sha in in %f s ( %f streams/s )"% (ni, rorepo.__class__.__name__, elapsed, ni/elapsed)
59
+
print>>sys.stderr, "PDB Streaming: Got %i streams from %s by sha in in %f s ( %f streams/s )"% (count, rorepo.__class__.__name__, elapsed, count/elapsed)
0 commit comments