in perl. how does hash store data in memory -
I have a large XML file and there is too much memory to parse it. Because I believe that there are many reasons for this in the file for a lot of username
I changed the length of each user name from 28 bytes to 10 bytes.
Play again. But it still takes almost the same amount of memory.
The XML file is now parsed with SAX and during the handle, the result is stored in a hash structure such as:
$ this-> {'Date'} - & gt; {'School 1'} - & gt; {$ Class} - & gt; {$ Student} ...
Why still memory is so high I reduce the length of the student name? It is possible when the data is stored in the hash memory there is too much overhead, no matter how the length of the string is alone?
Comments
Post a Comment