From 33c614a1e34ea671c07c2fb0ba400fce9db8bf07 Mon Sep 17 00:00:00 2001 From: Vaidhy Mayilrangam Date: Sat, 13 Jan 2024 09:46:51 -0800 Subject: Primitive hash (#345) * Calculate average by vaidhy * Calculate average by vaidhy * More changes * remove worker log * Pass -Dparellelism and switch back to open * Try out mmap * Improve mmap solution * no copy version * reduce threads * hash code computed on the fly * Reuse the char (Do not know if it helps) * primitive hash map * Primite HashMap * Micro optimizations to push for optimizations * Revert "Micro optimizations to push for optimizations" This reverts commit ea333e2821ebb5c1d6d71a4e87e569a8f2f8f7f0. * Micro optimizations to get the juice * floorMod fixes * findSemi and findNewLine as separate functions * Optimized parseDouble * More micro changes * Aligned equal check * more small changes * XOR instead of compare * Reduce loop length * Revert changes * Loop optimization and added native build * Hand unrolled findSemi loop. * Remove incorrect comments * Taking care fo PR comments * Add prepare script * Missing header error fix * remove wrong comment --------- Co-authored-by: Anita S V Co-authored-by: Anita SV --- prepare_vaidhy.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 prepare_vaidhy.sh (limited to 'prepare_vaidhy.sh') diff --git a/prepare_vaidhy.sh b/prepare_vaidhy.sh new file mode 100755 index 0000000..f83a3ff --- /dev/null +++ b/prepare_vaidhy.sh @@ -0,0 +1,19 @@ +#!/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. +# + +source "$HOME/.sdkman/bin/sdkman-init.sh" +sdk use java 21.0.1-graal 1>&2 -- cgit v1.2.3