Please sign in to comment.
Replace regular expression search with a simple if-else. Replace a for-loop with a new Function to convert rows to objects, such that each row is defined in a single step as an object literal rather than lazily defining properties on a blank object. Note that parseRows can still be substantially faster for large files provided you convert strings to smaller types (e.g., numbers or booleans); greedy type-conversion reduces peak memory usage and accelerates garbage collection.
- Loading branch information...
Showing with 50 additions and 58 deletions.
Oops, something went wrong.