Skip to content

Commit ddb818c

Browse files
committed
Made the CompactCrawledUrlRepository the default impl. The average url from several sources appears to be above 32 characters which would leave a smaller memory footprint.
1 parent 0d5147f commit ddb818c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Abot/Crawler/WebCrawler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public WebCrawler(
190190
CrawlBag = _crawlContext.CrawlBag;
191191

192192
_threadManager = threadManager ?? new TaskThreadManager(_crawlContext.CrawlConfiguration.MaxConcurrentThreads > 0 ? _crawlContext.CrawlConfiguration.MaxConcurrentThreads : Environment.ProcessorCount);
193-
_scheduler = scheduler ?? new Scheduler(_crawlContext.CrawlConfiguration.IsUriRecrawlingEnabled, null, null);
193+
_scheduler = scheduler ?? new Scheduler(_crawlContext.CrawlConfiguration.IsUriRecrawlingEnabled, new CompactCrawledUrlRepository(), null);
194194
_pageRequester = pageRequester ?? new PageRequester(_crawlContext.CrawlConfiguration);
195195
_crawlDecisionMaker = crawlDecisionMaker ?? new CrawlDecisionMaker();
196196

0 commit comments

Comments
 (0)