-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crawler or Sitemap is too slow #289
Comments
I edited the TS as below, and now it get much better performance on Crawler import axios from "axios"; type CrawlResult = { const visitedLinks: Set = new Set(); const crawlPage = async (url: string) => { import axios from "axios"; type CrawlResult = { const crawlPage = async (url: string) => { const crawlUrls = async (urls: string[]) => { if (!isMainThread) { // Do some work here... for (let i = 0; i < numWorkers; i++) { export const crawl = async ( while (queue.length > 0 && visitedLinks.size < maxLinks) {
} return { links: fetchedLinks, errors: errorLinks }; const isSameDomain = (url1: string, url2: string): boolean => { const normalizeUrl = (url: string): string => { |
The Crawler or Sitemap is too slow?
Any Chance to improve it to allow multisite crawler which can use more CPU and GPU power?
The text was updated successfully, but these errors were encountered: