Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Approach 7: Use bytes instead of strings(Time: 83s)
The `read_lines` and `read_line` method stored the line as a String. Strings in rust needs to be UTF8, the previous approach validated this on each line which caused some overhead. We replace strings with bytes and only validate the string while printing. Playing with bytes is also much cheaper because you are dealing with raw data.
- Loading branch information