Hi 308181687,
I also tested in this way. If print every byte, the OS cache will
consume the size of file at last,about 800M.
for (int j = 0; j < len; ++j){System.out.println(buff.get());}
If just call buff.get() in loop, the OS cache will consume only 8M at last.
for
Yes, the JVM is removing the get() call, because it knows that it has no
side-effect: the position() pointer is not used afterwards and the result of
the get() call is also not used. It is partly mapped because the optimization
only starts to kick in after 10,000 method calls (the default thresh
And if you're looking for a parser, take a look at LUCENE-5205.
["george washington" carver]!~5,5
Find "George Washington" but not if carver appears 5 words before or 5 words
after.
-Original Message-
From: Michael Ryan [mailto:mr...@moreover.com]
Sent: Monday, July 14, 2014 9:58 PM
To