Closed Bug 1444109 Opened 7 years ago Closed 7 years ago

[tracking protection 2.0] TP Stats parsing blocklists taking 1 sec on main

Categories

(Firefox for iOS :: General, enhancement, P2)

Other
iOS
enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
fxios ? ---

People

(Reporter: garvan, Assigned: garvan)

References

Details

Attachments

(1 file)

55 bytes, text/x-github-pull-request
justindarc
: review+
Details | Review
The function `func wildcardContentBlockerDomainToRegex(domain: String) -> NSRegularExpression?` is taking the bulk of the parsing time. I tested adding some memoization to this function and my profile goes from 1s to 0.25s. We should port to Focus iOS also. In the original Focus code, this is a closure (I changed to a function because we re-use it): https://github.com/mozilla-mobile/focus-ios/blob/master/Blockzilla/Lib/TrackingProtection/TrackingProtection.swift#L111
Blocks: 1443776
Target Milestone: --- → 11.0
Depends on: 1442416
Attached file Pull request
Attachment #8957226 - Flags: review?(jdarcangelo)
Attachment #8957226 - Flags: feedback?(jboek)
Attachment #8957226 - Flags: review?(jdarcangelo) → review+
landed on master
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Whiteboard: [needsuplift]
Whiteboard: [needsuplift]
Attachment #8957226 - Flags: feedback?(jboek)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: