CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 20:20:02 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/"673162c1c5ecacaa2de99ff73d6b6512"
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=TektdQneTNBlHgJqRPyDN8gp4xKLC4EeM6TDk%2Bjad%2FEV2CcWy23BZL8YkjiTLabHfuO5ShC3cbfd2loWJrBomwwyjr7b2x7R3LXtSeyH7bUmJyaLPjedTyruHO4DRYdbV6EA39OTthHgKv4woCT64hyUwU50z2xeKXCVWfFF0fe8l6PG4og%2BvsyGEcddcnnne%2FfOS667GI9xhd921y1XQpMUpM45cnPf%2FOZusiY1z4QFBhBeVrjzOvq4jaw8Ips13kJQwkotZhx%2FWWUzwOnZyQ%3D%3D--nf0QGc1FGKJRELe2--%2BPV%2FtRUh2IMNP%2BQGdR0yvQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.963962854.1753734001; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 20:20:01 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 20:20:01 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D5C4:8019C:70A54:96450:6887DB71
Replace FilterPlainHostname with composite filter · gorhill/uBlock@f060bb5 · GitHub
Copy file name to clipboardExpand all lines: src/js/static-net-filtering.js
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit f060bb5
committed
Replace FilterPlainHostname with composite filter
FilterPlainHostname, an atomic filter unit, has been
removed and is being replaced with a composite filter
made of a pattern filter and a filter which test
hostname boundaries.
Doing so enables filters formerly being represented
by FilterPlainHostname to be now represented as a
plain pattern, and thus to be potentially stored in
a bidi-trie.
Comparing the new filter histogram with the previous
one:
FilterPatternPlain 24612 26432 1820
FilterComposite 17656 17125 -531
FilterPlainTrie Content 12977 13519 542
FilterPlainHostname 2904 0 -2904
FilterBucket 2121 1961 -160
FilterPlainTrie 1418 1578 160
Which means:
- An extra 542 patterns could be stored in bidi-tries
- There are 531 less composite filters needed
- An extra 160 buckets could be aggregated into 160
bidi-trie
Memory-wise, it's a marginal gain (as per Chromium's
Javascript VM instance figure) -- i.e. not worth
talking about). CPU-wise, no measurable difference.
The benefit is that I consider this conceptually
simplifies slightly the static network filtering
code base.1 parent edc5503 commit f060bb5Copy full SHA for f060bb5
File tree
Expand file treeCollapse file tree
2 files changed
+85
-117
lines changedFilter options
- src/js
Expand file treeCollapse file tree
2 files changed
+85
-117
lines changed+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 |
| - | |
| 138 | + | |
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
|
src/js/static-net-filtering.js
Copy file name to clipboardExpand all lines: src/js/static-net-filtering.js+84-116Lines changed: 84 additions & 116 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
864 | 864 |
| |
865 | 865 |
| |
866 | 866 |
| |
867 |
| - | |
868 |
| - | |
869 |
| - | |
870 |
| - | |
871 |
| - | |
872 |
| - | |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 |
| - | |
877 |
| - | |
878 |
| - | |
879 |
| - | |
880 |
| - | |
881 |
| - | |
882 |
| - | |
883 |
| - | |
884 |
| - | |
885 |
| - | |
886 |
| - | |
887 |
| - | |
888 |
| - | |
889 |
| - | |
890 |
| - | |
891 |
| - | |
892 |
| - | |
893 |
| - | |
894 |
| - | |
895 |
| - | |
896 |
| - | |
897 |
| - | |
898 |
| - | |
899 |
| - | |
900 |
| - | |
901 |
| - | |
902 |
| - | |
903 |
| - | |
904 |
| - | |
905 |
| - | |
| 867 | + | |
906 | 868 |
| |
907 | 869 |
| |
908 | 870 |
| |
| |||
952 | 914 |
| |
953 | 915 |
| |
954 | 916 |
| |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
955 | 952 |
| |
956 | 953 |
| |
957 | 954 |
| |
| |||
2468 | 2465 |
| |
2469 | 2466 |
| |
2470 | 2467 |
| |
2471 |
| - | |
| 2468 | + | |
2472 | 2469 |
| |
2473 | 2470 |
| |
2474 | 2471 |
| |
| |||
3018 | 3015 |
| |
3019 | 3016 |
| |
3020 | 3017 |
| |
3021 |
| - | |
3022 |
| - | |
3023 |
| - | |
3024 |
| - | |
3025 |
| - | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
3026 | 3023 |
| |
3027 | 3024 |
| |
3028 | 3025 |
| |
3029 |
| - | |
3030 |
| - | |
3031 |
| - | |
3032 |
| - | |
3033 |
| - | |
3034 |
| - | |
| 3026 | + | |
3035 | 3027 |
| |
3036 |
| - | |
3037 |
| - | |
3038 |
| - | |
3039 |
| - | |
| 3028 | + | |
| 3029 | + | |
3040 | 3030 |
| |
3041 |
| - | |
3042 | 3031 |
| |
3043 | 3032 |
| |
3044 | 3033 |
| |
3045 | 3034 |
| |
3046 |
| - | |
3047 |
| - | |
3048 | 3035 |
| |
3049 | 3036 |
| |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
3050 | 3040 |
| |
3051 | 3041 |
| |
3052 | 3042 |
| |
| |||
3056 | 3046 |
| |
3057 | 3047 |
| |
3058 | 3048 |
| |
3059 |
| - | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
3060 | 3054 |
| |
3061 | 3055 |
| |
3062 | 3056 |
| |
| |||
3668 | 3662 |
| |
3669 | 3663 |
| |
3670 | 3664 |
| |
3671 |
| - | |
3672 |
| - | |
3673 |
| - | |
3674 |
| - | |
3675 |
| - | |
3676 |
| - | |
3677 |
| - | |
3678 |
| - | |
3679 |
| - | |
3680 |
| - | |
3681 |
| - | |
3682 |
| - | |
3683 |
| - | |
3684 |
| - | |
3685 |
| - | |
3686 |
| - | |
3687 |
| - | |
3688 |
| - | |
3689 |
| - | |
3690 |
| - | |
3691 |
| - | |
3692 |
| - | |
3693 |
| - | |
3694 |
| - | |
3695 |
| - | |
3696 |
| - | |
3697 |
| - | |
3698 |
| - | |
3699 |
| - | |
3700 |
| - | |
3701 |
| - | |
3702 |
| - | |
3703 |
| - | |
3704 |
| - | |
3705 |
| - | |
3706 |
| - | |
3707 |
| - | |
3708 |
| - | |
3709 |
| - | |
3710 |
| - | |
3711 |
| - | |
3712 |
| - | |
3713 |
| - | |
3714 |
| - | |
3715 |
| - | |
3716 |
| - | |
3717 |
| - | |
3718 |
| - | |
3719 |
| - | |
3720 |
| - | |
3721 |
| - | |
3722 |
| - | |
3723 |
| - | |
3724 |
| - | |
3725 |
| - | |
3726 |
| - | |
3727 |
| - | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
3728 | 3696 |
| |
3729 | 3697 |
| |
3730 | 3698 |
| |
|
You can’t perform that action at this time.
0 commit comments