in reply to Re: Re: Memory usage & hashes of lists of hashes of lists
in thread Memory usage & hashes of lists of hashes of lists

You are storing all the information in some datastructure. It just doesn't happen to be a HoLoHoL that you mentioned earlier. It's that string $field_data. Processing each ticket individually means that when you're done with the loop, there is nothing in memory but what you had before you entered the loop. :-)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Re: Re: Memory usage & hashes of lists of hashes of lists

Replies are listed 'Best First'.
Re: Re: Re: Re: Memory usage & hashes of lists of hashes of lists
by the_slycer (Chaplain) on Sep 28, 2001 at 03:01 UTC
    But, the $field_data variable is undefed at the end of the loop @$fields loop (see my update). The @$afields array is only retrieving the 90 fields per ticket. Again, at max that field is about 3k at the end, so it's not an ever increasing variable - also note how it is redefined at the start of every new ticket (below first foreach), so I really don't think that $field_data is causing the memory issues (yes it's not the most efficient way of doing things, but it is NOT sucking up 150 meg of RAM on the server).