Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同道中人哈 #3

Closed
Blankj opened this issue Dec 6, 2017 · 3 comments
Closed

同道中人哈 #3

Blankj opened this issue Dec 6, 2017 · 3 comments

Comments

@Blankj
Copy link

Blankj commented Dec 6, 2017

我之前也为我公司封装过高性能日志,也是结合了 marx 的 xlog,不过我是直接用的 xlog 编译出来的 .so库,然后结合我的 alog,仅仅在写入文件部分使用到了 xlog 的代码,公司也一直在用我封装的 Lg,哈哈。

@pqpo
Copy link
Owner

pqpo commented Dec 7, 2017

Cool, 同道中人~,mars 是个很优秀的框架,考虑到 xlog 的有些功能暂时用不到(比如压缩,加密等),编译出来等 so 有2M左右。了解到 xlog 使用了 mmap 来代替内存缓冲,所以自己实现了一套。压缩,加密等其他功能之后考虑添加单独的模块插入到 Interceptor 中。

@Blankj
Copy link
Author

Blankj commented Dec 7, 2017

我们只适配某一类型的设备,所以只需要一种类型的 .so 即可,500k 左右即可哈。

@pqpo
Copy link
Owner

pqpo commented Dec 7, 2017

估计是新版本包变大了,我上次仅编译了 armeabi 平台,so 文件有 1.8 m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants