Created
May 3, 2010 19:05
-
-
Save 3rd-Eden/388464 to your computer and use it in GitHub Desktop.
Node.js gives a fatal error when looping big arrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] ); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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