aboutsummaryrefslogtreecommitdiff
path: root/prepare_gnabyl.sh
diff options
context:
space:
mode:
authorBang NGUYEN <lelybang.nguyen@gmail.com>2024-01-13 12:32:17 +0100
committerGitHub <noreply@github.com>2024-01-13 12:32:17 +0100
commitdc49249d3671e9944f1af8278ad618a3f0eb8c00 (patch)
tree42b7c16742998eed0e64dcd38e7602eb9d2d2cd5 /prepare_gnabyl.sh
parent45056e073b1301b2398802255737f39bb2d99252 (diff)
[Attempt #2] String overflow hash + data/mem optimization (#356)
* Use graal * Use dynamic cores computer * Use stream API to cleanup code * Use max processors * Use hash to avoid init string * optimize concurrentmap init * Smaller hash size * Avoid checking concurrentmap * Optimize data type * string dedup * Faster write * Change base * Remove time * Use mul instead of div
Diffstat (limited to 'prepare_gnabyl.sh')
-rwxr-xr-xprepare_gnabyl.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/prepare_gnabyl.sh b/prepare_gnabyl.sh
new file mode 100755
index 0000000..06b81c4
--- /dev/null
+++ b/prepare_gnabyl.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+# 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.
+#
+
+# Uncomment below to use sdk
+source "$HOME/.sdkman/bin/sdkman-init.sh"
+sdk use java 21.0.1-graal 1>&2