H
Hicham Mouline
Hello,
I have measurements done daily (work days) for the past 20 years or so, in
the order then of 5000 or so entries.
I currently have them in a text file (I've hand written the parser but I'll
move to boost::spirit eventually)
The application is growing:
.. I may move to 20 years worth of measures every few seconds and arrive at a
range of 50 000 000 entries. Each entry is probably 64 bytes.
.. I may use a database
.. I may receive the data over a network socket
I have a class 'historical_data' that currently holds the 5000 in memory. A
standalone function (in the same namespace as that class) parses from text
file into that class.
My application typically iterates from earliest to latest on this data.
I am wondering what incremental changes to introduce to the code I have to :
1. Make some factory function to create a full 'historical_data' from text
file/database/network socket
2. allow for 50 000 000 instead of 5000 entries, and possibly keep just a
part in memory and the rest on text file/database/network, and access this
transparently
rds,
I have measurements done daily (work days) for the past 20 years or so, in
the order then of 5000 or so entries.
I currently have them in a text file (I've hand written the parser but I'll
move to boost::spirit eventually)
The application is growing:
.. I may move to 20 years worth of measures every few seconds and arrive at a
range of 50 000 000 entries. Each entry is probably 64 bytes.
.. I may use a database
.. I may receive the data over a network socket
I have a class 'historical_data' that currently holds the 5000 in memory. A
standalone function (in the same namespace as that class) parses from text
file into that class.
My application typically iterates from earliest to latest on this data.
I am wondering what incremental changes to introduce to the code I have to :
1. Make some factory function to create a full 'historical_data' from text
file/database/network socket
2. allow for 50 000 000 instead of 5000 entries, and possibly keep just a
part in memory and the rest on text file/database/network, and access this
transparently
rds,