1.1 --- a/iixr/positions.py Fri Sep 18 22:21:25 2009 +0200
1.2 +++ b/iixr/positions.py Sat Sep 19 01:43:35 2009 +0200
1.3 @@ -97,11 +97,14 @@
1.4 # Write the position file offset delta.
1.5 # Write the document count.
1.6
1.7 - output = [docnum - self.last_docnum, pos_offset - self.last_pos_offset, count]
1.8 + output = array('B')
1.9 + vint_to_array(docnum - self.last_docnum, output)
1.10 + vint_to_array(pos_offset - self.last_pos_offset, output)
1.11 + vint_to_array(count, output)
1.12
1.13 # Actually write the data.
1.14
1.15 - self.f.write("".join([vint(x) for x in output]))
1.16 + output.tofile(self.f)
1.17
1.18 self.last_pos_offset = pos_offset
1.19 self.last_docnum = docnum