AdguardTeam / AdguardTeam/ExtendedCss

Use worker API to exec selector simultaneously

オープン
#181 コメント 1 件 リアクション 0 件 担当者 1 名 @maximtop が担当を希望しています GitHub で見る
Priority: P4
主要言語
TypeScript
スター
71
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

If a selector without non-standard CSS properties matches huge amount of elements, large amount of CPU and memory resources are required to check the non-standard CSS properties.
It means that checking process with non-standard CSS properties will take some times.

However, using [p-limit npm package](https://github.com/sindresorhus/p-limit) can execute a selector with non-standard CSS properties simultaneously according to `navigator.hardwareConcurrency` [^1].
It reduces the taking time to execute a selector to select the elements.

[^1]: Please note that some privacy protection features mock the property with a number lower than the actual number. (e.g., Brave web browser's fingerprinting blocking and Firefox's `privacy.resistFingerprinting` in `about:config`)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。