Re: [nodejs] What's different of requiring json or js?

2012-08-06 Thread Kei Son
loading the file. > > > > > -- Joshua Gross > > Christian / SpanDeX, Inc. / BA Candidate of Computer Science, UW-Madison > > 2013 > > 414-377-1041 / http://www.joshisgross.com > > > > On Aug 4, 2012, at 9:43 AM, Kei Son wrote: > > > >

Re: [nodejs] What's different of requiring json or js?

2012-08-05 Thread Kei Son
Thanks for the idea. But I just want to know why. 2012년 8월 6일 월요일 오전 9시 58분 22초 UTC+9, Marak Squires 님의 말: > > You might want to consider using a streaming JSON parser. > > On Sat, Aug 4, 2012 at 7:43 AM, Kei Son wrote: > >> I have a huge JSON file, right, it's 78MB.

Re: [nodejs] What's different of requiring json or js?

2012-08-05 Thread Kei Son
://www.joshisgross.com > > On Aug 4, 2012, at 9:43 AM, Kei Son wrote: > > I have a huge JSON file, right, it's 78MB. > When I just require it from node-cli it takes 450MB memory footprint. I > can understand that is bloated 6x times because the JSON file is just a > str

[nodejs] What's different of requiring json or js?

2012-08-05 Thread Kei Son
I have a huge JSON file, right, it's 78MB. When I just require it from node-cli it takes 450MB memory footprint. I can understand that is bloated 6x times because the JSON file is just a string in the storage, but it needs spaces for indexing, making some padding, optimization, linking and what