Performance
The code isn't optimized.
- Arrays are not the right data structure for the blacklists, their lookup cost is
O(n)
whereas good hash tables can achieveO(1)
. - A single RegExp would be better than multiple ones.
The code isn't optimized.
O(n)
whereas good hash tables can achieve O(1)
.