This application counts the number of lines in a file concurrently and provides a TCP server for handling client requests.
- Concurrent file processing for line counting
- TCP server to accept file paths and return line counts
- Comprehensive error handling and performance optimization
- Build and run the application:
cargo run
- Fn counting lines is modified to use optimal amount of parallelism for linf counting only.
- I attempted to implement parallel file reader that spawns threads, splits file into no overlapping chunks and all are processed concurrently. Unlikely, I couldn't make it work correctly due to arbitrary length of lines which input file may contain.