Skip to content

Commit

Permalink
feat(adblocker): speed up engines merge (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod authored Dec 11, 2024
1 parent 5700693 commit 4674a86
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"dependencies": {
"@duckduckgo/autoconsent": "^10.17.0",
"@ghostery/adblocker": "^2.3.0",
"@ghostery/adblocker-webextension": "^2.3.0",
"@ghostery/adblocker": "^2.3.1",
"@ghostery/adblocker-webextension": "^2.3.1",
"@ghostery/scriptlets": "github:ghostery/scriptlets#29c825e",
"@github/relative-time-element": "^4.4.4",
"@sentry/browser": "^8.43.0",
Expand Down
7 changes: 6 additions & 1 deletion src/utils/engines.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,12 @@ export function replace(name, engineOrEngines) {
const engines = [].concat(engineOrEngines);
const engine =
engines.length > 1
? FiltersEngine.merge(engines, { skipResources: true })
? FiltersEngine.merge(engines, {
skipResources: true,
overrideConfig: {
enableCompression: false,
},
})
: engines[0];

engine.updateEnv(ENV);
Expand Down

0 comments on commit 4674a86

Please sign in to comment.