CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 21:30:26 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/gorhill/uBlock.git
etag: W/"2c997dec2311dd39e90863f3fcbdca23"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=bXkxvN0eEIdbi%2FQS2NKkWoW3M28OgmsOAbc3yKPaf9Q%2FYnK%2BwYYtH99SKPta8gXBbT9hyzoUJZqjXApCEwXPQF1bSYmmFm%2BjvxVYs1oUqhn7qMd8EDyPe4VJ4JJ7NC0ZBWhgWN2x1ZN2UgpjyuAMkmbLQxFqBIWc3vW6htggsg3YK%2Bgq3ZosDS8Epjx1BUK%2BDUVCI5HfdQmPftDUqvihGngToRr2XvAWu77o2b2xIFJKVLlYsT3xZvG9shn5wCzBtJPUcOSDEuzEFLKD2IuHEw%3D%3D--krcmL6NZ0jfeYylW--ctU6lD0TvgaIaN1D617tBQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.210712270.1753651826; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 21:30:26 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 21:30:26 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CB80:3467EF:11BF01B:174F880:68869A72
Do not store impossible to match filters in HNTrie · gorhill/uBlock@adabb56 · GitHub
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit adabb56
committed
Do not store impossible to match filters in HNTrie
Consider the two following filters:
example.com
www.example.com
This commit make it so that if the first filter is
already present in a given HNTrie, the second filter
will not be stored, since HNTrie will _always_
return the first filter as a match whenever the
hostname to match is example.com or any subdomain
of example.com.
The detection of such pointless filters is
virtually free when adding a hostname to an HNTrie
instance (given how data is stored in the trie), so
in practice no overhead is incurred to detect such
pointless filters.
The ability to ignore impossible to match filters
in HNTrie instances will _especially_ benefit those
using large hosts files.
Examples of how this helps using real configurations:
- Default lists:
444 filters out of 100,382 were ignored as a result
of this commit.
- Default lists + "Energized Ultimate Protection":
283,669 filters out of 903,235 were ignored as a
result of this commit.
Side note: There was no measurable difference between
the two configurations above in the performance of
the matching algorithm as reported by the built-in
benchmark tool.1 parent c4f9ae7 commit adabb56Copy full SHA for adabb56
File tree
Expand file treeCollapse file tree
4 files changed
+85
-38
lines changedFilter options
- src/js
- wasm
Expand file treeCollapse file tree
4 files changed
+85
-38
lines changed+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
| 141 | + | |
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
|
+17-10Lines changed: 17 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 |
| - | |
| 178 | + | |
| 179 | + | |
179 | 180 |
| |
180 | 181 |
| |
181 | 182 |
| |
| |||
238 | 239 |
| |
239 | 240 |
| |
240 | 241 |
| |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 | 242 |
| |
248 | 243 |
| |
249 | 244 |
| |
250 | 245 |
| |
251 | 246 |
| |
252 | 247 |
| |
253 | 248 |
| |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
254 | 255 |
| |
255 | 256 |
| |
256 | 257 |
| |
| |||
259 | 260 |
| |
260 | 261 |
| |
261 | 262 |
| |
| 263 | + | |
| 264 | + | |
| 265 | + | |
262 | 266 |
| |
263 | 267 |
| |
264 | 268 |
| |
| |||
303 | 307 |
| |
304 | 308 |
| |
305 | 309 |
| |
| 310 | + | |
| 311 | + | |
| 312 | + | |
306 | 313 |
| |
307 | 314 |
| |
308 | 315 |
| |
| |||
550 | 557 |
| |
551 | 558 |
| |
552 | 559 |
| |
553 |
| - | |
| 560 | + | |
554 | 561 |
| |
555 | 562 |
| |
556 | 563 |
| |
| |||
560 | 567 |
| |
561 | 568 |
| |
562 | 569 |
| |
563 |
| - | |
| 570 | + | |
564 | 571 |
| |
565 | 572 |
| |
566 | 573 |
| |
| |||
570 | 577 |
| |
571 | 578 |
| |
572 | 579 |
| |
573 |
| - | |
| 580 | + | |
574 | 581 |
| |
575 | 582 |
| |
576 | 583 |
| |
|
src/js/wasm/hntrie.wasm
Copy file name to clipboard56 Bytes
Binary file not shown.
+67-27Lines changed: 67 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
| 56 | + | |
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
| |||
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 | 68 |
| |
73 | 69 |
| |
74 | 70 |
| |
75 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 |
| |
77 | 87 |
| |
78 | 88 |
| |
| |||
244 | 254 |
| |
245 | 255 |
| |
246 | 256 |
| |
247 |
| - | |
| 257 | + | |
248 | 258 |
| |
| 259 | + | |
249 | 260 |
| |
250 | 261 |
| |
251 | 262 |
| |
| |||
264 | 275 |
| |
265 | 276 |
| |
266 | 277 |
| |
267 |
| - | |
268 |
| - | |
269 |
| - | |
270 |
| - | |
271 |
| - | |
272 |
| - | |
273 |
| - | |
274 |
| - | |
275 |
| - | |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 | 278 |
| |
286 | 279 |
| |
287 | 280 |
| |
| |||
310 | 303 |
| |
311 | 304 |
| |
312 | 305 |
| |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
313 | 330 |
| |
314 | 331 |
| |
315 | 332 |
| |
| |||
323 | 340 |
| |
324 | 341 |
| |
325 | 342 |
| |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
326 | 356 |
| |
327 | 357 |
| |
328 | 358 |
| |
| |||
463 | 493 |
| |
464 | 494 |
| |
465 | 495 |
| |
466 |
| - | |
467 |
| - | |
| 496 | + | |
468 | 497 |
| |
469 | 498 |
| |
470 | 499 |
| |
471 | 500 |
| |
472 | 501 |
| |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
473 | 513 |
| |
474 | 514 |
| |
475 | 515 |
| |
|
You can’t perform that action at this time.
0 commit comments