Instead we can have the file contains port details stored in the directory. When ports are matched it could be searched over the file and related information can be parsed and written to output file.
Nice to have A little benchmarking to compare with hashmap solution.
Currently port details are listed with the help of hashmap that is built by following helper code : https://github.com/kursatkobya/bite-sized-qualms/tree/main/file-parser This approach could be faster but obviously not neat enough.
Instead we can have the file contains port details stored in the directory. When ports are matched it could be searched over the file and related information can be parsed and written to output file.
Nice to have A little benchmarking to compare with hashmap solution.