1. 这两个IF ELSE分支里检测的条件其实逻辑上来说都是同一类,应该合并到一个IF分支里进行检查: It is an expensive operation to open a file in application server with 50MB file size. Current logic is: 1. Open the file in application server 2. Read the file content line by line 3. If the file i…