JingDong: When it render the “search result” page ,(every item has the picture) ,it will buffer all the pictures in the SD card to accelerate the display .

Tested from Kevin’s emulator, we can see ,that all the p_w_picpaths that requested are downloaded into mnt/sdcard/p_w_picpath folder.


手机开发-京东360buy手机版的图片加载_第1张图片

 

We open it with p_w_picpath tool ,and see that the p_w_picpaths are exactly the same that we see from the android client.

So next time ,if we want to see the previous item ,we do not need to launch the REST call again ( because it is very slow for 1G /2G network) ,instead ,it only retrieved from the SDCard locally ,which leads to a faster speed.

 

 

Result analysis:

Advantage: obviously reduce the times to send REST request to server and reduce the network traffic.

Disadvantage: we need to clear the temp contents (buffered p_w_picpaths ,etc) regularly.