Closed egorgrachev closed 2 years ago
@egorgrachev Thank you for your work! Unfortunately after merging https://github.com/greyblake/whatlang-rs/pull/108 (which is enough hardcore performance optimization that does not improve readability, but almost 2x increases performance) this PR becomes mostly irrelevant. I am the one to blame for not being quick enough to do all the necessary reviews and incorporate PRs and give feedback. Sorry for this.
Refactor alphabet_calculate_scores to use iterators instead of for loops; extract simple functions