I am currently working on developing a barcode scanner application. The client has provided me with a 6mb CSV file containing data for various products.
One approach I am considering is parsing the CSV file into a JSON object, extracting barcodes, and then searching for the corresponding items within a 6mb in-memory JavaScript object. Would this method negatively impact performance? Is there a size limit for the file that would affect performance?
If I were to convert this project into an Ionic app, would it further decrease performance?
While I understand that creating an API server for querying would be more efficient, do you think it is absolutely necessary in this case?
EDIT: The file is downloaded once by an Angular service and stored in memory until the app is closed. Filtering would be done on this in-memory object.