Search:

Type: Posts; User: wkohlani

Search: Search took 0.00 seconds.

  1. Replies
    32
    Views
    5,864

    I think you're right. But, in this case, what's...

    I think you're right. But, in this case, what's the alternative approach?

    Is there another way of searching the linked list faster? I can't think of another approach especially with the way the...
  2. Replies
    32
    Views
    5,864

    hmm... Yes, since the function is called...

    hmm...

    Yes, since the function is called whenever I read a line (that is 100s of millions of times), so it is getting called alot. And in each call the following line is executed:

    struct...
  3. Replies
    32
    Views
    5,864

    Thank you all for you valuable replies. I took...

    Thank you all for you valuable replies. I took some of the comments into consideration and used fgets, and also read 1 million lines at a time and put that into an array and processed that, and also...
  4. Replies
    32
    Views
    5,864

    Thanks guys for this good start ! I don't...

    Thanks guys for this good start !

    I don't think I'm very worried about "fgets" or "fscanf" because I've used both before and things were the same.

    The big problem that I don't understand is...
  5. Replies
    32
    Views
    5,864

    Trying to make this run faster

    Hi Everyone:

    First, I'd like to say that I'm new here and I hope to find the help I need.


    I wrote a c program that reads a GIGANTIC file (~16GB) line by line using fscanf in a while loop as...
Results 1 to 5 of 5