in reply to Re^2: bit by overhead
in thread bit by overhead
"I have tried packing and unpacking the data to store it as scalars, but this causes performance to be even slower than without the cache." It turns out that the overhead is onerous - or at least onerous enough that I may as well just not even use the cache.
Then you are doing it wrong.
There is no way that unpacking six values from a packed string should be slower than reading those same six values from disk. And querying them from a DB will be far slower still.
I guess it is time you started posting some of your code and let us see what you are doing wrong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: bit by overhead
by Anonymous Monk on Jan 06, 2011 at 19:34 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2011 at 20:01 UTC | |
by Anonymous Monk on Jan 06, 2011 at 21:06 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2011 at 21:19 UTC | |
by ikegami (Patriarch) on Jan 06, 2011 at 21:42 UTC | |
| |
by Anonymous Monk on Jan 07, 2011 at 16:07 UTC | |
|