手机开发-京东360buy手机版的图片加载

 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 images that requested are downloaded into mnt/sdcard/image folder.


 

We open it with image tool ,and see that the images 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 images ,etc) regularly.

本文出自 “平行线的凝聚” 博客,转载请与作者联系!

你可能感兴趣的:(京东,图片加载)