I wrote the parser, which parses the yandex YML with the goods, as well as copies all the pictures of the goods and puts everything into the database, disassembles the pictures into folders. The file in which 400 goods parsit is normal, but the file with 27411 goods passes for a very long time. In the settings, how many goods are set to parse at a time, set a different number, no sense. For each pass, the parser is loaded again.
$yml = simplexml_load_file($shop_info["yml_location"]);
Is it possible to somehow receive goods of 10 or 20 pieces from a file? That would not constantly load the entire file. Hosting can not stand. But on Denver loads everything clearly quickly.