Hacker News new | ask | show | jobs
by jodrellblank 6567 days ago
I downloaded a <10Mb web page (hundreds of thousands of list items, all on one line) and tried to open it.

Ha, I thought, Vim will eat this for breakfast. chug chug, task manager, end task. :(

Right, I'll break out the Emacs. chug chug, task manager, end task. :(

Hmm, what else do I have. Notepad. opened in seconds. :)

Promptly followed by search and replace can't insert newlines. :(

3 comments

Not sure what your problem was. I just popped up a 91M log file I had sitting around in my emacs (a CVS build from about a year ago, somewhere on the 23.x line I think). It took about 7-8 seconds to come up (probably building the table of line numbers) and is perfectly snappy interactively. This is on a laptop with 2.5G of memory running Ubuntu Gutsy.

   perl -n -e "s/(</li>)/$1\n/g; print" big_page.html > big_page_with_lines.html
:)
I opened a >120Mb genome sequence in Emacs, no problem. This was on a 64-bit machine with 3 Gb of RAM, running Ubuntu.
so maybe the problem was windows then? :)