问题描述
我现在用的排球在谷歌IO 2013年引入我运行相同的URL在浏览器中并返回,在不到一秒钟。我想知道我可以优化乱射。不清楚什么是缓存队列以重新presents,为什么它为3.6秒。或为什么缓存队列采取与网络完全被加入的反应时间是6.8秒?我应该如何优化凌空对于不使用ETag的服务。还有什么是BasicNetwork.logSlowRequests?
感谢
9月7日至26日:52:31.395:D /排球(5651):[4378] BasicNetwork.logSlowRequests:HTTP响应请求=< [] HTTP:// theurl。 COM /路径0xd6183ced师范大学6' [寿命= 3172],[大小= 940],[RC = 200],[retryCount = 0]
九月七号至26日:52:31.400:D /排球(5651):[4377] BasicNetwork.logSlowRequests:为请求HTTP响应=< [] http://theurl.com/path 0xd6183ced师范大学5个; [寿命= 3182],[大小= 940],[RC = 200],[retryCount = 0]
九月七号至26日:52:31.445:D /排球(5651):[1] MarkerLog.finish:(6848毫秒)[] http://theurl.com/path 0xd6183ced师范大学6
九月七号至26日:52:31.445:D /排球(5651):[1] MarkerLog.finish:(+0)[1]加入到队列
九月七号至26日:52:31.445:D /排球(5651):[1] MarkerLog.finish:(3622)[4376]缓存队列走
九月七号至26日:52:31.450:D /排球(5651):[1] MarkerLog.finish:(+6)[4376]高速缓存命中过期
九月七号至26日:52:31.450:D /排球(5651):[1] MarkerLog.finish:(+0)[4378]网络队列走
九月七号至26日:52:31.450:D /排球(5651):[1] MarkerLog.finish:(3173)[4378]网络的HTTP完成
九月七号至26日:52:31.450:D /排球(5651):[1] MarkerLog.finish:(+36)[4378]网络解析完成
九月七号至26日:52:31.450:D /排球(5651):[1] MarkerLog.finish:(+11)[4378]网络高速缓存写入
九月七号至26日:52:31.450:D /排球(5651):[1] MarkerLog.finish:(+0)[4378]后的反应
九月七号至26日:52:31.455:D /排球(5651):[1] MarkerLog.finish:(+0)[1]就可以完成
九月七号至26日:52:31.455:D /
九月七号至26日:52:31.525:D /排球(5651):[1] MarkerLog.finish:(6998毫秒)[] HTTP:// myurl 0xd6183ced师范大学5
九月七号至26日:52:31.525:D /排球(5651):[1] MarkerLog.finish:(+0)[1]加入到队列
九月七号至26日:52:31.530:D /排球(5651):[1] MarkerLog.finish:(3683)[4376]缓存队列走
九月七号至26日:52:31.530:D /排球(5651):[1] MarkerLog.finish:(+7)[4376]高速缓存命中过期
九月七号至26日:52:31.530:D /排球(5651):[1] MarkerLog.finish:(+1)[4377]网络队列走
九月七号至26日:52:31.530:D /排球(5651):[1] MarkerLog.finish:(3184)[4377]网络的HTTP完成
九月七号至26日:52:31.535:D /排球(5651):[1] MarkerLog.finish:(+39)[4377]网络解析完成
7月26号09:52:31.535:D /排球(5651):[1] MarkerLog.finish:(21)[4377]网络高速缓存写
九月七号至26日:52:31.535:D /排球(5651):[1] MarkerLog.finish:(+0)[4377]后的反应
九月七号至26日:52:31.535:D /排球(5651):[1] MarkerLog.finish:(+63)[1]就可以完成
我只是回答了这个位置:如何优化网络队列参加安卓排球? (排球谷歌IO 2013)
logSlowRequests只是记录请求是缓慢的(超过3000ms),仅此而已有复杂的。网络HTTP完成是需要多长时间下载请求,将其传递给解析器。
I am am using Volley introduced in Google IO 2013. I run the same url in the browser and it returns in less than a second. I would like to know how I can optimize Volley. Not clear on what is the Cache Queue Take represents and why it is 3.6 seconds. or why cache queue take and network complete are added for a response time that is 6.8 seconds? How should I optimize volley for services that do not use ETags. Also what is BasicNetwork.logSlowRequests?
Thanks
07-26 09:52:31.395: D/Volley(5651): [4378] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http://theurl.com/path 0xd6183ced NORMAL 6> [lifetime=3172], [size=940], [rc=200], [retryCount=0]
07-26 09:52:31.400: D/Volley(5651): [4377] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] http://theurl.com/path 0xd6183ced NORMAL 5> [lifetime=3182], [size=940], [rc=200], [retryCount=0]
07-26 09:52:31.445: D/Volley(5651): [1] MarkerLog.finish: (6848 ms) [ ] http://theurl.com/path 0xd6183ced NORMAL 6
07-26 09:52:31.445: D/Volley(5651): [1] MarkerLog.finish: (+0 ) [ 1] add-to-queue
07-26 09:52:31.445: D/Volley(5651): [1] MarkerLog.finish: (+3622) [4376] cache-queue-take
07-26 09:52:31.450: D/Volley(5651): [1] MarkerLog.finish: (+6 ) [4376] cache-hit-expired
07-26 09:52:31.450: D/Volley(5651): [1] MarkerLog.finish: (+0 ) [4378] network-queue-take
07-26 09:52:31.450: D/Volley(5651): [1] MarkerLog.finish: (+3173) [4378] network-http-complete
07-26 09:52:31.450: D/Volley(5651): [1] MarkerLog.finish: (+36 ) [4378] network-parse-complete
07-26 09:52:31.450: D/Volley(5651): [1] MarkerLog.finish: (+11 ) [4378] network-cache-written
07-26 09:52:31.450: D/Volley(5651): [1] MarkerLog.finish: (+0 ) [4378] post-response
07-26 09:52:31.455: D/Volley(5651): [1] MarkerLog.finish: (+0 ) [ 1] done
07-26 09:52:31.455: D/
07-26 09:52:31.525: D/Volley(5651): [1] MarkerLog.finish: (6998 ms) [ ] http://myurl 0xd6183ced NORMAL 5
07-26 09:52:31.525: D/Volley(5651): [1] MarkerLog.finish: (+0 ) [ 1] add-to-queue
07-26 09:52:31.530: D/Volley(5651): [1] MarkerLog.finish: (+3683) [4376] cache-queue-take
07-26 09:52:31.530: D/Volley(5651): [1] MarkerLog.finish: (+7 ) [4376] cache-hit-expired
07-26 09:52:31.530: D/Volley(5651): [1] MarkerLog.finish: (+1 ) [4377] network-queue-take
07-26 09:52:31.530: D/Volley(5651): [1] MarkerLog.finish: (+3184) [4377] network-http-complete
07-26 09:52:31.535: D/Volley(5651): [1] MarkerLog.finish: (+39 ) [4377] network-parse-complete
07-26 09:52:31.535: D/Volley(5651): [1] MarkerLog.finish: (+21 ) [4377] network-cache-written
07-26 09:52:31.535: D/Volley(5651): [1] MarkerLog.finish: (+0 ) [4377] post-response
07-26 09:52:31.535: D/Volley(5651): [1] MarkerLog.finish: (+63 ) [ 1] done
I just answered this here : How to optimize network-queue-take in android Volley? (Volley Google IO 2013)
logSlowRequests just logs requests that are slow (over 3000ms), nothing more complicated there. network-http-complete is how long it takes to download the request and pass it off to the parser.
这篇关于优化排球的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!