|
Posted by Mikhail Kovalev on 12/05/07 13:23
On 5 Des, 14:02, The Natural Philosopher <a...@b.c> wrote:
> Mikhail Kovalev wrote:
> > I unserialize an 8MB file, which contains the db array, and put the
> > new element there (then serialize the whole thing again and store)
>
> I am far from understanding what you are actually doing, but it sounds
> like you are willing to trade disk usage for speed and memory usage.
Yep, you nailed it right on through, my friend
My question is, will I be able to access and store values by
addresses?
Such as here:
$database[33][NEXT][1221][NEXT][12][COUNT] += 1; for example
Each element contains a COUNT value and an array of childs (NEXT),
which can be non-empty, empty or non-existent (when i check if it
exists)
Looks like this at top level:
Array(
433 => Array(
COUNT => 2121,
NEXT => Array( //
23 => Array( count&next etc ...)
433 => ...
etc...
)
),
1012 => Array( count & next.....)
.....
)
Navigation:
[Reply to this message]
|