Skip to content

Commit

Permalink
feat: added bigger buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-dev-hub committed Dec 25, 2023
1 parent 4588ca1 commit 0a00013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commoncrawl/wat.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func ParseWatByLine(filePath string, linkFile string, pageFile string, savePage
pageMap := make(map[string]FilePage)
linkMap := make(map[string]FileLink)

const maxCapacityScanner = 3 * 1024 * 1024 // 3*1MB
const maxCapacityScanner = 5 * 1024 * 1024 // 5*1MB

// Open the .gz file
file, err := os.Open(filePath)
Expand Down

0 comments on commit 0a00013

Please sign in to comment.