Read file in multiple threads and String to Text (#427)

* - Read file in multiple threads if available: 17" -> 15" locally
- Changed String to BytesText with cache: 12" locally

* - Fixed bug
- BytesText to Text
- More checks when reading the file

* - Combining measurements should be thread safe
- More readability changes
This commit is contained in:
Anthony Goubard
2024-01-16 22:10:38 +01:00
committed by GitHub
parent 7bd2df7c59
commit e4b717e1a4
2 changed files with 200 additions and 62 deletions

View File

@@ -15,5 +15,5 @@
# limitations under the License.
#
JAVA_OPTS="-Xmx2G"
JAVA_OPTS=""
java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_japplis $*