对deepin的anything挺感兴趣的
Tofloor
poster avatar
linusboyle
deepin
2018-06-17 21:05
Author
15.6更新已经装上了,现在还没感受到什么区别
内核模块加进去了也不知道有什么用,find还是原来的速度……这玩意儿是怎么使的?
Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2018-06-17 21:20
#1
文管搜索对比下就知道了
Reply View the author
avatar
linusboyle
deepin
2018-06-17 21:48
#2
https://bbs.deepin.org/post/158373
文管搜索对比下就知道了

不怎么好对比,看上去文管的搜索是变快了
所以说这个东西是集成在文管里了?
Reply View the author
avatar
许自强
deepin
2018-06-17 21:48
#3
本帖最后由 hyikesong 于 2018-6-17 13:50 编辑

find命令 http://man.linuxde.net/findlocate命令 http://man.linuxde.net/locate_slocate



Reply View the author
avatar
许自强
deepin
2018-06-17 21:49
#4
https://bbs.deepin.org/post/158373
文管搜索对比下就知道了

我感觉文官的搜索太慢了
Reply View the author
avatar
sjtlqy
deepin
2018-06-17 21:58
#5
试了下,确实挺快的,搜片快了很多,可以申请专利,不要浪费...
Reply View the author
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2018-06-17 23:38
#6
sjtlqy 发表于 2018-6-17 13:58
试了下,确实挺快的,搜片快了很多,可以申请专利,不要浪费...

好像已经出了论文了
Reply View the author
avatar
linusboyle
deepin
2018-06-18 04:17
#7
我去,刚才试了一下,anything真的快的吓人……
Reply View the author
avatar
wtz
deepin
2018-06-18 05:03
#8
https://bbs.deepin.org/post/158373
我去,刚才试了一下,anything真的快的吓人……

毕竟已经索引建表了,剩下来的就是CPU速度问题(strcmp)……
Reply View the author
avatar
sjtlqy
deepin
2018-06-18 22:33
#9
https://bbs.deepin.org/post/158373
我去,刚才试了一下,anything真的快的吓人……

command : anything   --help ?
Reply View the author
avatar
linusboyle
deepin
2018-06-18 22:39
#10
https://bbs.deepin.org/post/158373
毕竟已经索引建表了,剩下来的就是CPU速度问题(strcmp)……

那么这和locate之类的有什么区别呢……
内核模块?
Reply View the author
avatar
wtz
deepin
2018-06-18 23:01
#11
本帖最后由 wtz 于 2018-6-18 15:04 编辑
https://bbs.deepin.org/post/158373
那么这和locate之类的有什么区别呢……
内核模块?

locate应该用到了sqlite3,速度可能没有单纯的线性查表快。
说错了,locate也是线性表。那么可能的差距就在内核模块上(内核态<=>用户态 切换耗时)。
Reply View the author
avatar
许自强
deepin
2018-06-18 23:57
#12
https://bbs.deepin.org/post/158373
那么这和locate之类的有什么区别呢……
内核模块?

1. locate建立了包含文件信息的数据库,但是它却不能实时更新文件的变化(比如说你刚新建了一个文件,必须要先更新一下这个数据库才能搜索到这个文件),然而更新一次数据库花费时间比较多,无法满足实时搜索的要求。
2. anything会监控文件系统的变化,一旦有重命名啊、新建文件、删除文件这些操作,它都能感知到(这个是通过编写内核模块实现的)。
Reply View the author
avatar
许自强
deepin
2018-06-19 00:10
#13
https://bbs.deepin.org/post/158373
我去,刚才试了一下,anything真的快的吓人……

这个怎么用啊?
Reply View the author
avatar
linusboyle
deepin
2018-06-19 02:51
#14



看上去内核模块已经在15.6上了,但我没发现客户端
我是从github上扒了一份源码编译了一下
Reply View the author
avatar
许自强
deepin
2018-06-19 02:57
#15
https://bbs.deepin.org/post/158373
看上去内核模块已经在15.6上了,但我没发现客户端
我是从github上扒了一份源码编译了一下
...

了解了,再等等吧。
Reply View the author
avatar
linusboyle
deepin
2018-06-19 02:57
#16
本帖最后由 linusboyle 于 2018-6-18 19:03 编辑

/usr/src里有内核模块源码
Reply View the author
avatar
许自强
deepin
2018-06-19 02:59
#17
https://bbs.deepin.org/post/158373
/usr/src里用源码
不知道为什么没有编译

那不都是头文件吗
Reply View the author
avatar
linusboyle
deepin
2018-06-19 03:02
#18
https://bbs.deepin.org/post/158373
那不都是头文件吗

是内核模块的源码
不是很清楚……15.6还没有应用吧……
Reply View the author
avatar
xyzjk
deepin
2018-10-15 00:07
#19
还没正式出来么?搜了一下貌似也没有讲怎么用的?
Reply View the author