4 ms·
Yes, just read a file in chunks and spread the math across cores. How many ways could you possibly implement that?? :)
by winrid 3y ago
Yes, just read a file in chunks and spread the math across cores. How many ways could you possibly implement that?? :)
- cm2187 3y agoCustom number parsing, minimising the number of memory allocations to not be punished by the garbage collector. All sort of micro optimisations that make those solutions a terrible way to showcase a language (i.e. you can write much clearer and concise code but obviously slower).
- winrid 3y agoI agree that the simplest solution in each language is the best way to compare - however this problem seems less about showing off java and more about challenging folks.