in reply to Re: Unpacking and converting
in thread Unpacking and converting
There is a black box of software that dumps some data in text format every three seconds. The data is actually a representation of internal process state in a report format with fixed-width fields containing numeric values or, in certain cases, empty strings instead. I need to gather this data, process it and put in a database. There is also a side requirement of placing minimal possible load on that server. This is why the database and all processing is on an external machine I can control.
The amount of text is quite significant, as I said each dump can easily contain 15-30 mb of text depending on server state, and these dumps are coming every three seconds. Some kind of compression is required even when the data is sent over fast LAN to a nearby machine, otherwise I run the risk of not having enough time to send over and process one batch before next one is ready.
My first thought was to use an agent software that would collect the data, parse it into arrays with unpack(), serialize with Storable and send over to processing machine. Now it appears to me that this approach is wrong altogether; it will be much easier to compress the text with gzip before sending. Nevertheless, the question of the fastest array iteration remains since I still need to process the data.
Regards,
Alex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unpacking and converting
by andal (Hermit) on Feb 16, 2011 at 10:50 UTC | |
by dwalin (Monk) on Feb 17, 2011 at 13:30 UTC | |
by andal (Hermit) on Mar 10, 2011 at 12:47 UTC | |
|
Re^3: Unpacking and converting
by flexvault (Monsignor) on Feb 17, 2011 at 15:57 UTC |