Optimize the dirwatcher, change its check time to 20 seconds.
commitfce3d60ef3fb3d83f7d5a2ab050fb344ae641986
authorJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Wed, 30 Jul 2008 22:00:33 +0000 (31 00:00 +0200)
committerJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Wed, 30 Jul 2008 22:00:33 +0000 (31 00:00 +0200)
tree58f0ca23c6f9dda40cf4443e8fa56b7049df6322
parent331caf1aa6295566049368c1ee84d69e72bc342c
Optimize the dirwatcher, change its check time to 20 seconds.

There is nothing more to do here right now. The main problem is
that regexp is hellishly slow and out of the time spent waiting
over 120 seconds (invocation every 5th) 15 seconds were spent
in regexp parsing of files. I seriously think we can gain something
by just eating *every* file and scan it ourselves with a function.
lib/etorrent-1.0/src/etorrent_dirwatcher.erl