]> pilppa.com Git - libplp.git/commit
Data read optimizations
authorMika Laitio <lamikr@pilppa.org>
Tue, 14 Aug 2012 22:45:36 +0000 (01:45 +0300)
committerMika Laitio <lamikr@pilppa.org>
Tue, 14 Aug 2012 22:45:36 +0000 (01:45 +0300)
commitfb1be129d4304d68e42f3e30710968a0899e5482
tree561550815e4951a811a1337c7923f0e5034e8573
parent88183ebdd35a2bd340d949382f593466dfc887de
Data read optimizations

Check the existence of year and month
folders when scanning the daily data.
This reduces a lot of read cycles in
cases that there months of holes without
data between the first and last data
available for certain device.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/DataReader.cc
src/DataReader.hh
src/Date.cc
src/Date.hh
src/DeviceData.cc
src/FileUtil.cc
src/FileUtil.hh
src/SensorDevice.hh
src/StoreCache.cc
src/StoreDay.cc
src/StoreDay.hh