Closed ags closed 8 years ago
@weppos Is there any chance this could be looked at? We were seeing frequent SystemStackError
s in production until this change.
If this gem needs help with maintenance, I'll happily lend a hand :)
Thanks!
Sorry for the silence @ags, I merged the patch. Thanks!
I've just released 1.5.3
Thanks @weppos! :+1:
By default, the rule index is re-created when new rules are added to a list.
The index isn't cleared when this happens, so the index allows repeated addition of the same indices for the same rule. This in turn slows down
List.find
.We (Flippa) add 39 new rules to the default list, which means for a TLD like '.it', 15,129 rules are checked instead of the 369 unique ones.