sampsyo/beets — pull request #52 by djrtl (2012-10-07 20:07:38+00:00)
Title: Small optimization in the fuzzy search plugin.

Hi Adrian,

By constructing the matcher object only once for the entire query and by changing only the item to match, I got an improvement between 5 and 10% in performance on my library.

More in general, I wonder if this is the fastest way to implement a fuzzy search and whether it should be more integrated in the other ls-like searches (eg using the tilde rather than the colon between field name and value). By using the match function through sqlite maybe it could be even more efficient -- for example now it checks for each item in an album the same artist name and album title.

Regards,
Matteo