楼主: 
Neisseria (Neisseria)   
2013-12-27 10:43:23这个函数的作用是
  利用 dlocate -S $file 这个指令查询 $file 属于那个 Debian 套件
  http://pastebin.com/K1hJZHLf  请赏光
  利用 timeit 跑一次函数的速度约 0.1-0.2 秒之间
  因为这个函数是一个中间的步骤
  有时候会被执行很多次  结果整个指令执行起来很慢
  完整的 script 已经可以用了  只是还很阳春
  https://github.com/cwchen123/exe-deps.git
  想问各位大大要怎么加快这个 script 的速度?
  [Update]:
  后来在 script 中加入 cache 及 multi-threading
  其中 cache 的方式用 memoized decorator
  multi-threading 透过 multiprocessing
  果然速度大有提升  接近 shell commands 的速度  偶而还会更快
  不过用 ldd(1) 来查相依性  跟 Debian 套件中标示的相依性还是差一点