Looking to optimize data parsing in JavaScript for a large file? I'm currently using JSON parse for a 250MB file, but it's too slow. Is there a faster method to extract a high volume of data without iterating through every character? The file contains multiple floating point arrays.
UPDATE: The file includes a 3D mesh with 6 buffers (vertices, UV coordinates, etc). These buffers must be represented as typed arrays for performance reasons. Streaming is not an option as the entire file needs to be loaded before the graphics engine can proceed. Perhaps the real question is how to efficiently transfer extensive typed arrays from a file to JavaScript.