HI,
I have a cron that calls a basic API URL. The output is xml so I use php's file_get_contents()
to get the data to process.
My question is, Does the output format of the xml make a difference in the transfer time from one server to another? The cron is running every ten minutes and I don't want the crons to overlap at some point because the data processing is time sensitive.
ex :
<?xml version="1.0"?><api><data>sometext here</data></api><!-- As one line -->
<?xml version="1.0"?>
<api>
<data>sometext here</data>
</api> <!-- As multiple lines -->
Note that this is only an xml example, the data of mine makes the xml output 2000+ lines long.
I have tested it and it seems like it is the same(maybe microseconds apart) for any type of xml. Is there any way of speeding that up?