-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmark framework + bug fixes (#31)
[test] Add tests for matching and Engine based on Alex top 1000 domains [perf] Add `bench` module to measure performance + memory consumption in Node.js [perf] Avoid string copy in tokenizer [perf] Avoid copy of filters during Engine initialization [perf] Add minified version of bundle using Closure Compiler [fix] Fix network filter option parsing [fix] Fix `isAnchoredByHostname` in network filter matching [fix] Re-work optimization framework to be easier to understand and extend (also fix bugs in incorrect optimizations) [breaking] `Engine.match` will now return the original filter matching the request instead of a pretty-printed version (caveat: when optimizations kick-in, the original filter might not be available anymore.) [breaking] Build artifacts are now located in `dist` folder. Remove dependency to babel and let TypeScript compile to ES3 instead Simplify TypeScript config + make more strict Simplify rollup config Update dependencies Make use of new `tldts` package for URL parsing Add type definitions in build artifacts to allow the adblocker to be used in a TypeScript project, as a library. Update filters list assets + add script to ease future updates. [fix] Cosmetic filter tokenization (ignoring styles) + add tests
- Loading branch information
Showing
91 changed files
with
56,832 additions
and
5,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "airbnb", | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"webextensions": true | ||
}, | ||
"rules": { | ||
"no-console": "off", | ||
"no-continue": "off" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
build/ | ||
coverage/ | ||
node_modules/ | ||
.tern-port | ||
bench/dataset/chromedriver | ||
bench/dataset/ext.zip | ||
bench/dataset/requests.json | ||
bench/.bench.json | ||
example/background.bundle.js | ||
example/background.js | ||
example/content-script.bundle.js | ||
example/content-script.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.