I have an application server in Java which requires parsing a CSV file. Is there any way by which I could increase the performance, as the program requires parsing the CSV file for each new connection.
The CSV file is static, so I was thinking about caching it in the main memory.
Why cache the csv in memory? Cache the parsed result in memory. Don’t know what you are parsing it to, but create a class that represents a record. Make that class immutable, and then cache in E.g. a List or Map if you want fast access to certain records.