Memory Leak, or Coding problem ? |
[eluser]Matthew Lanham[/eluser]
Well it shouldn't be using that much ram, however simpleXML is pretty memory intense, and its fairly slow aswell, you might want to look into a SAX parser, i had one kicking around i found that we use on a huge project over 3.4 million records split into multiple xml files of 50,000 and the SAX parser is a HUGE amount faster, and doesnt need as much ram, as it only loads in blocks, where as simpleXML loads the whole file into memory.... Just found the link: http://code.google.com/p/pushxml/ Uses a SAX parser to pass back an object just like using simpleXML but better, give it a whirl and let me know if this helps. |
Messages In This Thread |
Memory Leak, or Coding problem ? - by El Forum - 03-15-2008, 01:17 PM
Memory Leak, or Coding problem ? - by El Forum - 03-16-2008, 10:18 AM
Memory Leak, or Coding problem ? - by El Forum - 03-16-2008, 12:21 PM
Memory Leak, or Coding problem ? - by El Forum - 03-16-2008, 12:43 PM
Memory Leak, or Coding problem ? - by El Forum - 03-16-2008, 01:34 PM
Memory Leak, or Coding problem ? - by El Forum - 03-16-2008, 01:49 PM
|