diff options
| author | Yavuz Tas <12643010+yavuztas@users.noreply.github.com> | 2024-01-05 23:50:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 23:50:58 +0100 |
| commit | f6acc6f3d569b966a58862182871d7521154bd06 (patch) | |
| tree | 74e2f86c95680a28cfc170739ba29ad03565e912 /calculate_average_yavuztas.sh | |
| parent | 5f4ed31fece5c20de6a23e3c5a9eedac9a63bc1a (diff) | |
A solution with Actor Model concurrency and MappedByteBuffer
* A solution with Actor Model concurrency and MappedByteBuffer
* fix test cases
* revert back the file name to original
* cache String hashCode calculation via composing with Key object
* fix wrong key caching and eleminate duplicate String creation between actors
* update possible char count in a line, fix calculate_average.sh
* increase possible line length to 256 bytes, much safer to cover 100 chars I hope
---------
Co-authored-by: Yavuz Tas <yavuz.tas@ing.com>
Diffstat (limited to 'calculate_average_yavuztas.sh')
| -rwxr-xr-x | calculate_average_yavuztas.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/calculate_average_yavuztas.sh b/calculate_average_yavuztas.sh new file mode 100755 index 0000000..8c351c2 --- /dev/null +++ b/calculate_average_yavuztas.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Copyright 2023 The original authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +source "$HOME/.sdkman/bin/sdkman-init.sh" +sdk use java 21.0.1-graal 1>&2 + +JAVA_OPTS="-Xms1g -Xmx1g" +time java $JAVA_OPTS --class-path target/average-1.0.0-SNAPSHOT.jar dev.morling.onebrc.CalculateAverage_yavuztas |
