I have to transfer a big array from one server to another using a file. It's a multidimensional, but quite simple array. Now I'm searching for the most efficient way, to get this file into my application on the second server. So this question is about the file->array part, not the array->file part on the first server.Of course I did some benchmarks on the 3 alternatives that seemed most promising. My complete benchmark data:time:
- include: 0.338...
- unserialize: 0.180...
- json_decode: 0.134...
- include: 384374.64
- unserialize: 201377.28
- json_decode: 219528.08
- include: 3135 kB
- unserialize: 3142 kB
- json_decode: 1838 kB