Skip to content

Commit

Permalink
Approach 3: Use BufReader (Time: 137s)
Browse files Browse the repository at this point in the history
In this approach we use a Bufreader to read the file. This gave us a
huge boost in the time because:
 * In the previous approach, every line was being converted to String
   but in BufReader, the iterator we get is itself a string - Maybe
   that's why we no longer see the `to_string` in flamegraph
  • Loading branch information
Naveenaidu committed Jul 14, 2024
1 parent fb2dda8 commit 1f411b6
Show file tree
Hide file tree
Showing 2 changed files with 507 additions and 8 deletions.
Loading

0 comments on commit 1f411b6

Please sign in to comment.