First take with idiomatic scala(77ms):
Second take - replacing fors with whiles(63ms):
Third take - sum in a variable(55ms):
Multi-threaded with parallel collections(15ms):
Multi-threaded with parallel collections idiomatic scala(32ms):
No comments:
Post a Comment