Thread: any useful tips to increase speed when parsing files

  1. #1
    Shadow12345
    Guest

    any useful tips to increase speed when parsing files

    any tips for increasing speed when parsing files? so far i read in the entire file at once, and then create a pointer which points to it to extract the data, other than that I don't have any ideas for increasing speed and i was wondering if anyone else did have any useful tips that increase speed.

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    272
    Your o/s may allow you to only read in certain pages of your file to memory (assuming it's the size of the file that is slowing you down).
    Joe

  3. #3
    Shadow12345
    Guest
    well this is the thing i'm not really going slow (yet) but I am starting to get into parsing some considerably large files, and I want to make sure I'm doing everything as optimal as possible, hence the reason I leave the file open for as long EDIT: little as possible, instead I read everything into a temporary buffer and then close it and then extract the things i need from there
    Last edited by Shadow12345; 01-18-2003 at 05:59 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I Need To Know Some Things That I Can Put Into A Batch File
    By TheRealNapster in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-20-2003, 08:12 PM
  2. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM
  3. Using c++ standards
    By subdene in forum C++ Programming
    Replies: 4
    Last Post: 06-06-2002, 09:15 AM
  4. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 09:35 AM
  5. displaying text files, wierd thing :(
    By Gades in forum C Programming
    Replies: 2
    Last Post: 11-20-2001, 05:18 PM