I am writing a script in php4 that downloads a xml file that has been compressed into a .gz file. The normal file is 25MB, when compressed into a .gz file its only 2.5MB. My question is, is there any benefits of downloading the file in compressed .gz file other than the smaller file size? In order to process the xml file I still have to uncompress it locally on my server and then process this big 25MB xml file correct? I ask this because after uncompressing it then processing it just takes forever. Im also using simplexml that takes the xml file and converts it into an array. Any help/suggestions would be appreciated. Even if I just have the full 25MB xml file on my local server without having to decompress it, it still is very slow.
Share
You’re correct that you will still have to process the uncompressed file either way. You might be able to run some tests against the .gz file, but definitely not parse its xml.