1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-17 16:02:33 +01:00
uBlock/src/js
Raymond Hill ac58b8e688
Make token hashes fit within a 32-bit integer
The staticNetFilteringEngine uses token hashes to store/lookup
filters into Map objects.

Before this commit, the tokens were encoded into token hashes
as JS numbers (not exceeding MAX_SAFE_INTEGER) using at most
the 8 first characters of the token.

With this commit, token hashes are now restricted to fit
into 32-bit integers, and are derived from at most the 7 first
characters. This improves filter look-up performance as per
built-in benchmark().
2019-04-28 10:15:15 -04:00
..
codemirror Prevent search expression in CodeMirror editor from crossing line boundaries 2019-04-23 19:26:02 -04:00
scriptlets Improve handling of srcset-based images in element picker 2019-04-14 17:37:48 -04:00
wasm 3rd-gen hntrie, suitable for large set of hostnames 2018-12-04 13:02:09 -05:00
1p-filters.js Discard existing lines when importing from file in "My filters" 2019-04-20 18:57:16 -04:00
3p-filters.js fix https://github.com/uBlockOrigin/uBlock-issues/issues/248 2018-10-24 20:02:15 -03:00
about.js this takes care of #1443 2016-03-08 16:35:06 -05:00
advanced-settings.js Small code review of a52b07ff6e 2019-04-20 19:10:34 -04:00
asset-viewer.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
assets.js Fix uncaught rejected promise in assets.fetchText() 2019-04-21 06:12:20 -04:00
background.js Make token hashes fit within a 32-bit integer 2019-04-28 10:15:15 -04:00
cachestorage.js Code review implementation of cacheStorage.clear() 2019-03-28 10:17:47 -03:00
cloud-ui.js improve ckoud widget for small screen devices 2018-04-10 11:21:56 -04:00
commands.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
console.js Fix spurious output at uBO's dev console 2019-02-18 14:41:04 -05:00
contentscript.js Harden content script's message Port against spurious disconnections 2019-01-27 17:07:40 -05:00
contextmenu.js fix https://github.com/uBlockOrigin/uBlock-issues/issues/283 2018-11-06 16:11:03 -02:00
cosmetic-filtering.js Fix the handling of pseudoclass-based generic cosmetic filters 2019-04-21 07:49:44 -04:00
dashboard-common.js Discard existing lines when importing from file in "My filters" 2019-04-20 18:57:16 -04:00
dashboard.js Update fix for https://github.com/uBlockOrigin/uBlock-issues/issues/468 2019-04-14 16:57:09 -04:00
document-blocked.js fix #2859 2018-09-03 14:06:49 -04:00
dyna-rules.js Internationalize CodeMirror's hard-coded tooltips in the "My rules" pane 2018-12-22 11:55:13 -05:00
dynamic-net-filtering.js Add support to benchmark the dynamic filtering pane 2019-02-19 10:46:33 -05:00
fa-icons.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
filtering-context.js Fix typo which could lead to improper filtering context 2019-03-15 07:47:36 -04:00
hnswitches.js fix #2859 2018-09-03 14:06:49 -04:00
hntrie.js Convert HNTrie code to ES6 class 2019-04-25 19:38:07 -04:00
html-filtering.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
i18n.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
logger-ui-inspector.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
logger-ui.js Fix partyness evaluation for cases of base domain-less hostnames 2019-01-29 10:34:58 -05:00
logger.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
lz4.js Fix Promise chain of WASM module load operations 2019-02-01 08:20:43 -05:00
messaging.js Code review implementation of cacheStorage.clear() 2019-03-28 10:17:47 -03:00
pagestore.js Assume media elements with no Content-Length header to be of size 0 2019-04-24 08:30:54 -04:00
popup.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
redirect-engine.js Remove caching the result of domain extraction from hostname 2019-02-20 08:51:14 -05:00
reverselookup-worker.js Add export-to-clipboard feature to logger 2019-01-14 14:57:31 -05:00
reverselookup.js fix #2763 2018-07-22 10:47:02 -04:00
scriptlet-filtering.js Remove support for implicit scriptlet injection 2019-02-20 07:18:37 -05:00
settings.js fix #2477 2017-04-04 16:45:50 -04:00
shortcuts.js code review re. 8e9fe020b5 2018-07-22 08:14:50 -04:00
start.js Performance + code maintenance work on static network filtering engine 2019-04-14 16:45:20 -04:00
static-ext-filtering.js Fix the handling of pseudoclass-based generic cosmetic filters 2019-04-21 07:49:44 -04:00
static-net-filtering.js Increase resolution of known-token lookup table 2019-04-27 08:18:01 -04:00
storage.js Make userResourcesLocation able to support multiple URLs 2019-04-20 17:16:49 -04:00
strie.js Use a sequence of base 64 numbers to encode array buffers 2019-04-20 09:06:54 -04:00
tab.js Grand refactoring of the logger 2019-01-12 16:36:20 -05:00
text-encode.js refactor some webRequest-related code (now that firefox legacy is out of the way) 2018-10-28 10:58:25 -03:00
traffic.js Assume media elements with no Content-Length header to be of size 0 2019-04-24 08:30:54 -04:00
ublock.js Inject inline-script logger scriptlet at document_end 2018-12-22 08:33:42 -05:00
udom.js Update fix for https://github.com/uBlockOrigin/uBlock-issues/issues/468 2019-04-14 16:57:09 -04:00
uritools.js Use const, let instead of var 2019-02-24 09:01:58 -05:00
url-net-filtering.js code review: reuse last decomposed hostname (hit rate = 75%) 2018-06-03 13:27:42 -04:00
utils.js Make token hashes fit within a 32-bit integer 2019-04-28 10:15:15 -04:00
whitelist.js fix #3646 2018-03-27 19:10:31 -04:00