4 ms·
Pardon my ignorance, but I tried reading through the page and could not figure out what this is or does. Can someone point me to a quick summary or overview?
by johnhenry 10y ago
Pardon my ignorance, but I tried reading through the page and could not figure out what this is or does. Can someone point me to a quick summary or overview?
- yinseny 10y agoan AFNetworking/OkHttp alternative written in C++ and use socket instead of HTTP
- wjruoxue 10y agoIt has a lot of overlaps with other network frameworks such as OkHttp, AFNetworking, cronet, etc., but I think it main contributions are these two components: Xlog: in memory mmap log for fast logging and also supports encryption. Xlog log enables them to log everything fast and "safely" even in production build to quickly identify bugs. STN: short and long TCP connection manager, which is optimized for various networks in China. Plus other network utilities to make development easier.
- virmundi 10y agoOut of curiosity, is XLog better than the app simply logging everything to STD out, then let the invoker worry about the storage?
- wjruoxue 10y agoDepends on what the invokers wants. If the invoker only wants to log things to disk and read those logs later, surely he can do it himself. What XLog provides for the invoker under the hood is essentially performance: the invoker can log lots of things and does not need to worry about IO speed, disk space, and log safety. And of course it's cross platform. A detailed performance analysis is here (in Mandarin Chinese): http://mp.weixin.qq.com/s/cnhuEodJGIbdodh0IxNeXQ http://mp.weixin.qq.com/s/cnhuEodJGIbdodh0IxNeXQ