Unix Tail Part II - Make it Faster!
Level: Intermediate (score: 3)
We discovered the other day that beginner Bite: Display the last part of a file (unix tail) was not really optimized when testing it with a bigger file. Hence this follow-up Bite.
In this Bite you implement the same Unix tail functionality of taking the last N lines of a file, but this time you will do it in a more performant way.
The tests don't only test the returned list of lines, but also the performance of your tail implementation against a file of one million lines. Your implementation should be able to return the last N lines of that file in less than 0.05 seconds.
Good luck!