Closed GoogleCodeExporter closed 9 years ago
You can simply use the BinCompressedSeriesFile - you don't really need an index
file - instead you can make a complex key (date+contract) and use binary search
to quickly find it and start streaming from that point on.
Original comment by yuriastrakhan
on 3 Jan 2012 at 7:12
That would work - but would still be O(log n) lookup, when in fact I know the
index of the ticks I want, and how many of them I want. It would be easiest if
I query the table by index, but still get the benefit of storing the ticks in a
compressed format.
Original comment by kar...@gmail.com
on 3 Jan 2012 at 7:14
if you keep the file open, it cashes the searches, effectively building an
on-the-fly index. I would try this approach and measure the speed compared to
your current solution - I wouldn't be surprised if the savings on IO with
compressed data outweighs maintaining a separate index and doing a O(1)+read
speed.
Original comment by yuriastrakhan
on 3 Jan 2012 at 11:23
wontFixing this issue for now
Original comment by yuriastrakhan
on 23 Feb 2012 at 6:26
Original issue reported on code.google.com by
kar...@gmail.com
on 3 Jan 2012 at 7:04