Updating Roy's submission
* Added tests for endian-calculations (had these in a different class, perhaps handy for others to see as well) Inlined the hash function, runs locally in 2.4sec now, hopefully endian issues fix Added equals to support any city name up to 1024 in length, don't rely on hash * For clarity I've updated the code so endian doesn't change the hashes, easier to debug. * Fixing bug in array check Simple is faster * Also spotted the diff, not just the big exception Fixed buffer limit issue
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
|
||||
sdk use java 21.0.1-graal
|
||||
# Added for fun, doesn't seem to be making a difference...
|
||||
if [ -f "target/calculate_average_royvanrijn.jsa" ]; then
|
||||
JAVA_OPTS="-XX:SharedArchiveFile=target/calculate_average_royvanrijn.jsa -Xshare:on"
|
||||
|
||||
Reference in New Issue
Block a user