Jan 5, 2021
I meant high-level optimizations, not the low-level ones. For example, each file line, as well as a word of the input file, would become a separate string object at some point in time, which eats processor and memory. There are a number of ways how to improve the example code, which will make it faster but less concise.