Tencent / VasSonic

VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3.1.0版本有缓存还是很慢,下面是log,可以看出要5s左右

1079107009 opened this issue · comments

04-17 19:27:47.002 D/SonicSdk_SonicSession: session(45270)create:id=9336042_b6dca580b2b4804022aeae2617e7ad19.

04-17 19:27:47.003 D/SonicSdk_SonicSession:
session(45270) now post sonic flow task.

04-17 19:27:47.003 D/SonicSdk_SonicEngine:
onSessionStateChange:session(45270) from state 0 -> 1

04-17 19:27:47.004 D/SonicSdk_SonicSession:
session(45270) bind client.

04-17 19:27:47.016 D/SonicSdk_DefaultSonicCacheInterceptor:
session(45270) runSonicFlow verify html cache with sha1 success.

04-17 19:27:47.016 D/SonicSdk_SonicSession:
session(45270) runSonicFlow verify cache cost 12 ms

04-17 19:27:47.021 D/SonicSdk_SonicSession:
Session (9336042_b6dca580b2b4804022aeae2617e7ad19) send sonic request, etag=(5cb43ae7-1727), templateTag=(5cb43ae7-1727)

04-17 19:27:47.025 D/SonicSdk_SonicSessionConnection:
create UrlConnection with DNS-Prefetch(*** -> ***:443).

04-17 19:27:47.106 D/SonicSdk_SonicSessionConnection:
verify hostname cost 0 ms.

04-17 19:27:47.106 D/SonicSdk_SonicServer: session(9336042_b6dca580b2b4804022aeae2617e7ad19) server connect cost = 79 ms.

04-17 19:27:47.121 D/SonicSdk_SonicServer: session(9336042_b6dca580b2b4804022aeae2617e7ad19) server response cost = 14 ms.

04-17 19:27:47.121 D/SonicSdk_SonicSessionConnection:
internalGetCustomHeadFieldEtag ~ sonicEtag:null

04-17 19:27:47.122 D/SonicSdk_SonicSession:
session(45270) connection get header fields cost = 0 ms.

04-17 19:27:47.122 D/SonicSdk_SonicSession:
session(45270) connection set cookies cost = 0 ms.

04-17 19:27:47.122 D/SonicSdk_SonicSession:
session(45270) handleFlow_Connection: respCode = 304, cost 101 ms.

04-17 19:27:47.123 D/SonicSdk_SonicSession:
session(45270) handleFlow_Connection: Server response is not modified.

04-17 19:27:47.124 D/SonicSdk_SonicEngine:
onSessionStateChange:session(45270) from state 1 -> 2

04-17 19:27:47.140 D/SonicSdk_QuickSonicSession:
session(45270) onClientReady: have pending client core message ? -> false.

04-17 19:27:47.169 D/SonicSdk_SonicDownloadCache:
get resource data(https://***/vue-2.6.10.js) verify html cache with sha1 success.

04-17 19:27:47.200 D/SonicSdk_SonicDownloadEngine:
load sub resource(https://***/vue-2.6.10.js) from cache.
...
04-17 19:27:47.398 D/SonicSdk_SonicSession:
session(45270) handleMessage: msg what = 5.

04-17 19:27:47.398 D/SonicSdk_QuickSonicSession:
session(45270) handleClientCoreMessage_PreLoad:PRE_LOAD_WITH_CACHE load data.

04-17 19:27:47.419 D/SonicSdk_SonicSession:
session(45270) handleMessage: msg what = 1.

04-17 19:27:47.419 D/SonicSdk_SonicSession:
session(45270) setResult: srcCode=304, finalCode=304.

04-17 19:27:47.419 D/SonicSdk_SonicSession:
session(45270) setResult: notify fail as webCallback is not set, please wait!
...
04-17 19:27:47.852 D/SonicSdk_SonicSession:
onClientRequestResource called in TaskSchedulerFo.

04-17 19:27:47.974 D/SonicSdk_SonicSessionStream:
close: memory stream and socket stream, netStreamReadComplete=true, memStreamReadComplete=true

04-17 19:27:52.290 D/SonicSdk_SonicSession:
session(45270) onClientPageFinished.