I am building a caching system using memcache and was wondering what is the best format to store data.
Considering network latency since my memcache server is not on local host but on a centralized server. I found, storing a formatted array takes up 3× the size of a json_encoded array. So a 150kb php array becomes 50kb json encoded. Great!.
On average, each request performs roughly around 10 calls to memcache (for a number of reasons) which means it will have to decode data 10 times. am i ultimately loosing performance?