search for: xtypa

Displaying 1 result from an estimated 1 matches for "xtypa".

Did you mean: xtype
2013 Jul 03
2
Potential memory leak when assigning MSetItem values
...shutil.rmtree(path) except OSError, e: if e.errno != 2: raise db = x.WritableDatabase(path, x.DB_CREATE) for i in xrange(1, num_docs): doc = x.Document() doc.set_data(json.dumps({ 'id': i, 'enabled': True })) doc.add_term('XTYPA') db.add_document(doc) return db def run_query(db, num_docs=100000): e = x.Enquire(db) e.set_query(x.Query('XTYPA')) m = e.get_mset(0, num_docs, True, None) # Store the MSetItem's data, which causes a memory leak data = [] for i in m: da...