How to use the @cliqz/adblocker.tokenize function in @cliqz/adblocker

To help you get started, we’ve selected a few @cliqz/adblocker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cliqz-oss / adblocker / bench / micro.ts View on Github external
export function benchStringTokenize({ filters }: { filters: string[] }) {
  let dummy = 0;
  for (let i = 0; i < filters.length; i += 1) {
    dummy = (dummy + tokenize(filters[i]).length) >>> 0;
  }
  return dummy;
}