in reply to Re: Unpacking and converting
in thread Unpacking and converting
Not so. Simple addition results in warnings "Argument isn't numeric" whenever an empty string is there for a field that is nevertheless numeric.
Second option has no sense either, as I said that this data will be sent over the network. Considering that one line of data can easily be 2-4k (yes, kilo) and there can be like 5-7k lines per batch, savings from converting Unix time from 10-character strings to 4-byte integers are significant. And no, Storable does not convert the data by itself, I have checked before asking.
Anyway, the question was how to make array processing faster, not if there is any sense in doing it.
Regards,
Alex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unpacking and converting
by ikegami (Patriarch) on Feb 15, 2011 at 21:05 UTC | |
by dwalin (Monk) on Feb 15, 2011 at 21:31 UTC | |
by ikegami (Patriarch) on Feb 16, 2011 at 17:07 UTC | |
by BrowserUk (Patriarch) on Feb 16, 2011 at 17:30 UTC | |
by ikegami (Patriarch) on Feb 16, 2011 at 17:35 UTC | |
|