image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old November 8th, 2005, 04:04 PM
Ronman's Avatar
Registered User
 
Join Date: Feb 2004
Location: Texas
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Ronman is on a distinguished road
Editing/Browsing Really Big Files

I have the need to edit, but mostly just browse really big files. A small file would be 1GB. Text Edit, BBEdit, Smultron and most others try to load the entire file into memory. Even with a GB of memory and a lot of time on my hands these files can take 10-15 minutes to load and forget about scrolling through them.

Any ideas.

RonMan
Reply With Quote
  #2  
Old November 8th, 2005, 04:35 PM
BjarneDM's Avatar
Registered User
 
Join Date: Oct 2005
Location: København ; Danmark ; Europa
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
BjarneDM is on a distinguished road
you might want to take a look at one of the emacs ports:
http://www.versiontracker.com/dyn/moreinfo/macosx/24218
http://www.versiontracker.com/dyn/moreinfo/macosx/26662
http://www.versiontracker.com/dyn/moreinfo/macosx/17244

I know nothing about how emacs handles files, but with the Unix roots of the program it might be an option.

Now, you are stating that you need to browse these files.
Are you looking for specific pieces of text?
How are files organised: one big line, paragraphs, short lines ... ?
Depending on how you answer the above, the 'grep' and 'sed' utilities in 'Terminal' might be of interest to you.
__________________
Bjarne D Mathiesen
København ; Danmark ; Europa
Reply With Quote
  #3  
Old November 8th, 2005, 08:05 PM
fryke's Avatar
Super Moderator
 
Join Date: Sep 2000
Location: macosx.com
Posts: 13,277
Thanks: 2
Thanked 20 Times in 18 Posts
fryke has a spectacular aura aboutfryke has a spectacular aura about
Apart from that I think one has to _also_ accept that working with _really_ big files might also simply take some time. If a file is bigger than your RAM, you can't expect to just "browse through the document" by scrolling down and up, searching "quickly" etc., since you can't hold the document (uncompressed) in RAM.

In graphics, applications work with approximations, which works fine most of the time, since the eye often doesn't need every detail for a certain task. Text's a different monster altogether, though.

But I, too, would look into vim and emacs for tasks like that task.
__________________
MacBook Air 13" 1.6 GHz, 2 GB RAM, 80 GB HD. Mac OS X 10.5.5
MacBook 13" 1.83 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5
Hackintosh Core2Duo 2.4 GHz, 2 GB RAM, 160 GB HD. Mac OS X 10.5.5
iPhone 3G 16 GB (v2.1), AppleTV 1G 40 GB (v2.1)

Mac user since 1987, Apple Product Professional 2007, 2008.
Reply With Quote
  #4  
Old November 8th, 2005, 08:59 PM
Ronman's Avatar
Registered User
 
Join Date: Feb 2004
Location: Texas
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Ronman is on a distinguished road
Quote:
Originally Posted by BjarneDM
you might want to take a look at one of the emacs ports:
http://www.versiontracker.com/dyn/moreinfo/macosx/24218
http://www.versiontracker.com/dyn/moreinfo/macosx/26662
http://www.versiontracker.com/dyn/moreinfo/macosx/17244

I know nothing about how emacs handles files, but with the Unix roots of the program it might be an option.

Now, you are stating that you need to browse these files.
Are you looking for specific pieces of text?
How are files organised: one big line, paragraphs, short lines ... ?
Depending on how you answer the above, the 'grep' and 'sed' utilities in 'Terminal' might be of interest to you.

Good ideas, that I have yet to try. 20 years ago I was really good with emacs. I have no idea how it handles large files.

RonMan
Reply With Quote
  #5  
Old November 8th, 2005, 09:02 PM
Ronman's Avatar
Registered User
 
Join Date: Feb 2004
Location: Texas
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Ronman is on a distinguished road
Quote:
Originally Posted by fryke
Apart from that I think one has to _also_ accept that working with _really_ big files might also simply take some time. If a file is bigger than your RAM, you can't expect to just "browse through the document" by scrolling down and up, searching "quickly" etc., since you can't hold the document (uncompressed) in RAM.

In graphics, applications work with approximations, which works fine most of the time, since the eye often doesn't need every detail for a certain task. Text's a different monster altogether, though.

But I, too, would look into vim and emacs for tasks like that task.
I wish that grep and such would work but these are raw data file that have difficult to see relationships between records. Eventually it all goes into mySQL where I can see it, but I need a way to verify that it went in correctly. My only choice is to look at the raw file.

Here is a place where a WinTel buddy has me beat. He uses something called Lister that does only that. It is fast and only loads what is on the screen (not sure how it does scrolling backwards, but buffering, to a point, makes sense).

RonMan
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 02:11 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.