Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created May 3, 2010 19:05
Show Gist options
  • Save 3rd-Eden/388464 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/388464 to your computer and use it in GitHub Desktop.
Node.js gives a fatal error when looping big arrays
var fs = require('fs'),
sys = require('sys');
fs.readFile( './test/user_agent_data.csv', function( err, result ){
( result.split( "\n" ) ).forEach( function(){
sys.puts( arguments[2] );
});
});
@3rd-Eden
Copy link
Author

3rd-Eden commented May 3, 2010

Piece of code raices: FATAL ERROR: Allocation failed - process out of memory when loading code.google.com/p/browserscope/source/browse/trunk/test/sample_user_agents.csv as csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment