AdblockerFilterImpl class

Optimized implementation of AdblockerFilter.

Performance optimizations:

  • Domain-based rule indexing for O(1) lookup instead of O(n) linear search
  • LRU cache for shouldBlockResource decisions
  • LRU cache for CSS rules per domain
  • CSS rules indexed by domain for O(k) lookup
  • Batch parsing for reduced function call overhead
  • Pre-normalizes domains to lowercase
Implemented types

Constructors

AdblockerFilterImpl()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
override
getAllResourceRules() → List<ResourceRule>
override
getCSSRulesForWebsite(String url) → List<String>
override
init(String filterData) → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldBlockResource(String url) → bool
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited