You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, I need to output a html page, and the top half page is not change, so I gziped top half page and cached. Then I write gzip header, and directly write gziped cache data, and write rest of page data at last.
Because of this way, my qps increase 20%.
I think fasthttp could support page partial gziped cache API to speed up page output.
In my case, I need to output a html page, and the top half page is not change, so I gziped top half page and cached. Then I write gzip header, and directly write gziped cache data, and write rest of page data at last.
Because of this way, my qps increase 20%.
I think fasthttp could support
page partial gziped cache
API to speed up page output.Those are my codes:
1.use compress lib:
2.replace in go.mod:
3.golang code:
see this article for more detail(Chinese): https://www.cnblogs.com/ahfuzhang/p/17755400.html
The text was updated successfully, but these errors were encountered: