Comments (7)
拿gdb连上看了下,也不是死循环,是一个while循环要跑二百万次(以我的测试样本)
https://github.com/hsiangkao/erofs-utils/blob/f3f9a2ce313727a16dd44d5f6cb37882247bdeea/lib/dedupe.c#L79
能否考虑做下simd优化处理
from erofs-utils.
hi!刚看到消息,能否在邮件列表报告问题。。这个github我很少翻issue。。
from erofs-utils.
拿gdb连上看了下,也不是死循环,是一个while循环要跑二百万次(以我的测试样本)
能否考虑做下simd优化处理
dedupe目前是比较费cpu的,后面会考虑多线程处理。但由于历史数据不全,压缩率会有损失。
另外fragment去重已经做了进一步优化。
from erofs-utils.
拿gdb连上看了下,也不是死循环,是一个while循环要跑二百万次(以我的测试样本)
https://github.com/hsiangkao/erofs-utils/blob/f3f9a2ce313727a16dd44d5f6cb37882247bdeea/lib/dedupe.c#L79能否考虑做下simd优化处理
dedupe目前是比较费cpu的,后面会考虑多线程处理。但由于历史数据不全,压缩率会有损失。 另外fragment去重已经做了进一步优化。
嗯我的意思就是这块不知道编译器会不会unroll-loops 或许先用memcmp进行block by block 的对比比较好
AcmeUI/android_external_erofs-utils@2688eff
from erofs-utils.
毕竟memcmp在大多数c库下都是simd优化的
from erofs-utils.
毕竟memcmp在大多数c库下都是simd优化的
这个位置其实是可以使用类似memcmp的api的,但问题在于memcmp目前无法返回有多少字节匹配,所以不能满足要求。自己写一个或许快一点(比如你说的simd),但目前个人没时间。。
from erofs-utils.
I will close the issue (if you'd like to improve, patches are always welcome ;)
from erofs-utils.
Related Issues (9)
- Build failed without `--with-lz4-libdir` HOT 3
- [kind reminder] report issues or submiting patches via mailing list
- 这个工具支持生成android sparse格式的镜像么 HOT 8
- big difference between squashfs and erofs size image HOT 3
- A couple of questions on EROFS HOT 6
- Backport erofs to kernel 4.9 HOT 5
- 作者你好,在使用fsck.erofs分析华为emui9.1的system.img时总是提示 HOT 2
- Is it possible to change files without recreating Erofs ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erofs-utils.