Skip to content

Commit

Permalink
Chore: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jan 21, 2025
1 parent b378a4e commit 000d18c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
12 changes: 12 additions & 0 deletions Build/lib/process-line.bench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { fetchRemoteTextByLine } from './fetch-text-by-line';
import { processLine } from './process-line';

import { bench, run } from 'mitata';

(async () => {
const data = await Array.fromAsync(await fetchRemoteTextByLine('https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt', false));

bench('processLine', () => data.forEach(processLine));

run();
})();
2 changes: 1 addition & 1 deletion Build/lib/process-line.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it } from 'mocha';

import { processLine } from './process-line';
import expect from 'expect';
import { expect } from 'expect';

describe('processLine', () => {
([
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,3 @@ The `List/ip/china_ip.conf` file is licensed under [CC BY-SA 2.0](https://creati
</a>
</p>

<a href="https://api.gitsponsors.com/api/badge/link?p=6S+bnjregZ7KydXomsFzcPnzQbRNVb1XBxBmLK/i19l1Bi5Uh2WRZ4W12lbIzgrHRiP4ZnUi2T53QmxPojr+38otmzAe8WA7KTVELmmPmES7Dko7w34WphSJnz1FAz/RbQuGfDLHTWxDhnOEBuCwLw==" style="display: none">
<img src="https://api.gitsponsors.com/api/badge/img?id=323379491" height="0">
</a>
3 changes: 2 additions & 1 deletion Source/domainset/reject_sukka.conf
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,8 @@ comments.gazo.space
.plausible.io
.statfox.io
.trackjs.com
api.openpanel.dev
.openpanel.dev
openpanel.follow.is
plausible.astexplorer.net
simple.cloudsmith.com
.mktg.tags.f5.com
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@ghostery/adblocker": "^2.3.1",
"@henrygd/queue": "^1.0.7",
"@mitata/counters": "^0.0.8",
"async-retry": "^1.3.3",
"better-sqlite3": "^11.8.1",
"cacache": "^19.0.1",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 000d18c

Please sign in to comment.