You are not logged in.

#101 2009-04-03 12:56:05

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: arson - The HOT AUR search helper

zenix, have you considered using threads in the search method? Speeds it up quite a bit.

threads = []
list.each do |pkg|
  threads << Thread.new do
    info = get_info pkg
    next if ($Options[:filter] and (info['Name'].include? filter or info['Description'].include? filter))
    count += 1
    puts search_style(info, (info.ood == 'true' ? :red : nil))
  end
end
threads.each {|t| t.join}

Offline

Board footer

Powered by FluxBB