我試圖運行在PUMA基準給出的字數程序 The WordCount.java file is as follows:
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distrib
有哪些選項可用於在超大文件上進行字數統計? 我相信整個文件在1行,這可能是問題的一部分,正如下面的答案之一所指出的。 在這種情況下,我有一個1.7 Gb的xml文件,並試圖快速計算其中的一些內容。 我發現這個職位 Count number of occurrences of a pattern in a file (even on same line) 和方法爲我工作達到一定的規模。 高達300M