Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: how to quickly read a >10MB big file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72820] RE: [mg72807] how to quickly read a >10MB big file
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sun, 21 Jan 2007 05:29:25 -0500 (EST)
  • References: <200701200844.DAA10812@smc.vnet.net>

Hi,

> Hello, Friends:
> It is a file which has nearly 100,000 data lines. The file size is
> >10MB. Using mathematica 5, it takes over 30 mins to read the 
> data in; but using fortran, it takes only several secs. Does 
> anyone has a good idea to read such a file quickly. Many 
> thanks for any help in advance!

How are you reading the file into Mathematica?  Read?  ReadList?  Import?
The MathGroup package FastBinary?  Are you reading the file, then processing
it, or processing it as you go?

All these factors will have a bearing on the speed that you can read your
data into Mathematica.  In addition, while Fortran can be quite a bit
quicker than Mathematica, are you sure it's a fair comparison between the
two?

Please tell the list a bit more about how you're working.  Posting code and
a sample of the data you're working with will probably get quicker, more
appropriate answers than not.

Regards,

Dave.


  • Prev by Date: Re: Better recursive method?
  • Next by Date: Re: Help with plotting and iterations
  • Previous by thread: how to quickly read a >10MB big file
  • Next by thread: Re: how to quickly read a >10MB big file