any useful tips to increase speed when parsing files

This is a discussion on any useful tips to increase speed when parsing files within the C++ Programming forums, part of the General Programming Boards category; any tips for increasing speed when parsing files? so far i read in the entire file at once, and then ...

  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 04: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, 01: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, 08:35 AM
  5. displaying text files, wierd thing :(
    By Gades in forum C Programming
    Replies: 2
    Last Post: 11-20-2001, 04:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21