View Single Post
11/23/14, 07:24 AM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
This looks so interesting that I can't resist

The first thing I noticed is that libFilters has a few loops like this:
Lua Code:
  1. function(slot)                              
  2.             local result = true                    
  3.             for _,v in pairs(filters[filterType]) do
  4.                 if(v) then                          
  5.                     result = result and v(slot)    
  6.                 end                                
  7.             end                                    
  8.             return result                          
  9.         end

These should do an early return, once any of the filters returns false, the result is final. I will send changes to Randactyl later; but this little thing can only cure some symptoms, not the disease (if the disease is filters accumulating in the list). So I guess I'll need to dig deeper
  Reply With Quote